Skip to content

Windows Form C#

Varsha B

Asked Feb 13, 2014, 2:16 AM EST1 answer
Share
LinkedInX
How to display the size of the windows form based on the number of controls on the form..?

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Biswa Pujarini Mohapatra
    0
    You can use Dock, or for more precise control use the Anchor property. By setting Anchor to Left, Right, Top, Bottom the control will scale with the window. By setting Anchor to Right the control will move with the right border. By setting Anchor to Top and Bottom the control will scale vertically, but have a fixed width. Just experiment
    0