how to resize System.Windows.Control.Panel according to Window size

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mansigupta31
    New Member
    • Mar 2013
    • 2

    how to resize System.Windows.Control.Panel according to Window size

    How to resize System.Windows. Control.Panel if the window inside which the Panel is placed is minimised or maximised.
  • vijay6
    New Member
    • Mar 2010
    • 158

    #2
    Hey mansigupta31 set the Anchor property for that Panel, like as follows.

    Code:
    this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
                | System.Windows.Forms.AnchorStyles.Left) 
                | System.Windows.Forms.AnchorStyles.Right)));

    Comment

    Working...