Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I keep my winforms controls from overlapping when I expand the application?

I have a pretty simple winforms application. It contains a rich edit box, embedded browser, progress bar, a few buttons etc.

I have the anchors on the controls set to expand in all directions.

When expanding up and down, however, the controls will overlap one another. How do I prevent this from happening?

Thanks

like image 853
Jason Avatar asked Jan 03 '13 21:01

Jason


1 Answers

Your best bet is to add a TableLayoutPanel to your form which contains the "layout grid" this should be docked to the form, then you can add your controls into the cells in the table (they can cover multiple rows and columns so you can get the layout you want).

like image 151
Trevor Pilley Avatar answered Nov 15 '22 03:11

Trevor Pilley