can't seem to keep form controls evenly sized

justanotherone

New member
Joined
Nov 8, 2015
Messages
1
Programming Experience
1-3
howdy all. The issue is not being able to keep controls across a form in an even size when the form is resized, I know this is a common problem but I have tried docking and anchoring .. here is a screenshot.

this is the form before it is maximized, as you can see the buttons are of even size:
2airix3.jpg


and this is after, obviously button 4 has gone huge but the others have not changed:
2zrgoqw.jpg


what i want is that when the form is resized, the controls will stretch/shrink to fit evenly.
 

Attachments

  • 2zrgoqw.png
    2zrgoqw.png
    1.8 KB · Views: 43

JohnH

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
1,183
Location
Norway
Programming Experience
10+
You can use a TableLayoutPanel, with one row and four columns sized to 25%, and anchor it right+left. One Button in each cell, anchor left+right or Dock=Fill.
 
Top Bottom