how to put a label at a specified position at run time in c#.net
label position
Collapse
X
-
Tags: None
-
You can just set the left and top properties of the label like
label1.Left = 100;
label1.Top = 50;
This should do it.
Thanks
Sanat Palia -
Hello,
A label neither has left property nor top property.Please tell me another things to do this.
bye
thank you
Originally posted by sanatpaliaYou can just set the left and top properties of the label like
label1.Left = 100;
label1.Top = 50;
This should do it.
Thanks
Sanat PaliaComment
-
The label control does have the properties Left and Top. They are hidden from the designer. You can also do it this way:
Code:label1.Location = new Point(100, 50);
Originally posted by navneet guptaHello,
A label neither has left property nor top property.Please tell me another things to do this.
bye
thank youComment
Comment