label position

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • navneet gupta
    New Member
    • Feb 2008
    • 6

    label position

    how to put a label at a specified position at run time in c#.net
  • sanatpalia
    New Member
    • Feb 2008
    • 10

    #2
    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

    Comment

    • navneet gupta
      New Member
      • Feb 2008
      • 6

      #3
      Hello,
      A label neither has left property nor top property.Please tell me another things to do this.
      bye
      thank you


      Originally posted by sanatpalia
      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

      Comment

      • jjvainav
        New Member
        • Feb 2008
        • 25

        #4
        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 gupta
        Hello,
        A label neither has left property nor top property.Please tell me another things to do this.
        bye
        thank you

        Comment

        Working...