How to print labels in windows form in C# .net
Answers were Sorted based on User's Feedback
Answer / vijay lathiya
like if we want to print label1 msg than syntax for it
label1.Text="anything";
Is This Answer Correct ? | 21 Yes | 9 No |
Answer / gyana
We have to just drag the label from the toolbox and drop it
on the windows form in c# toprint label.
Is This Answer Correct ? | 4 Yes | 2 No |
Answer / tabrez ahmed
we can print labels by using LABEL1.TEXT="WELCOME"
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / satish
for printing a data on a label from database for this u
have to declare a label Label1 in the application and then
declare a datarow for retrieving row data from dataset and
the assign it to the label like this
datarow dr=dataset.tables[0].rows[1];
Label1=dr[0].tostring();
Is This Answer Correct ? | 3 Yes | 4 No |
Answer / gyana
We have to just drag the label from the toolbox and drop it
on the windows form in c# toprint label.
Is This Answer Correct ? | 5 Yes | 10 No |
Can you prevent your class from being inherited and becoming a base class for some other classes?
What?s the advantage of using System.Text.StringBuilder over System.String?
What is the functionality of break and continue in Visual Studio?
what is the use of master pages. how to use it
Why we use get set in c#?
Method1() { int a=0, b=0, c=0; Monitor.Enter(this) c = 12; b = 3; a = c/b Moniter.Exit(this) } Method1() { int a=0, b=0, c=0; c = 12; b = 3; lock(this){ a = c/b } } Choose correct answer. a. Upon completion, Method1 and Method2 release the lock b. Upon Comletion, Method1 release the lcok and Method2 not. c. Upon Completion, Method2 release the lock and Method1 not. d. Upon Completion, neither Method1 or Method to release the lock.
What is parallel programming in c#?
What is difference between first and firstordefault?
What is array and types of array in c#?
What are static and dynamic variables?
How to use reflection to call generic method?
What is state c#?