problem with panel control (Plz reply as soon as u can)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • siri11
    New Member
    • Sep 2007
    • 38

    problem with panel control (Plz reply as soon as u can)

    hi!!!!!!
    Can any one please suggest me how to change the location of a panel (i.e. X and Y positions) at run time.And also how to change the size of a panel (width and height) at run time.Please send the code if possible.(using C#.net Windows Application)

    Thanks
    siri
  • Shashi Sadasivan
    Recognized Expert Top Contributor
    • Aug 2007
    • 1435

    #2
    have you heard of properties?

    Anyways... Following is the code
    Code:
    this.panel1.Location.X = 0;
    this.panel1.Location.Y = 0;
    this.panel1.Size.Height = 10;
    this.panel1.Size.Width = 10;

    Comment

    Working...