Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

resize and adjust form controls as per the form resize

Tags:

c#

.net

winforms

I am developing a sample windows application. In this application, I am making use of WinForms with FormBorderStyle set to sizable. Now, when I run my application, it shows the startup form which is re sizable. This form consist of various windows controls on it. My problem is, when I resize the form, the controls on it do not get re size automatically. Does anybody know how to achieve this? Thanks in advance.

like image 264
Vijay Balkawade Avatar asked Dec 18 '09 06:12

Vijay Balkawade


1 Answers

Set The Dock or Anchor properties of your controls accordingly.

Play with it, it's simple.

like image 78
deerchao Avatar answered Nov 14 '22 23:11

deerchao