Click here to Skip to main content
16,005,236 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi
I am working on windows applications and i have a requirement that.

I am creating html file using string builder class in c#.
what i need is:-

i want to create a label and i want to assign some text to the label.

Help me,

Regards,
Nagaraju.N
Posted

1 solution

C#
Label lblCount = new Label();
this.lblCount.Text = " Your text ";
this.lblCount.Location = new System.Drawing.Point(55, 160);
this.lblCount.Size = new System.Drawing.Size(65, 15);
this.Controls.Add(lblCount);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900