How to create flexible in C# windows form application? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to create flexible in C# windows form application?

Auto width and hieght increase and decreas

19th May 2019, 8:40 AM
Mubarak Zahidi
Mubarak Zahidi - avatar
1 Answer
+ 1
The property which is responsible for making a form resizeable is form1.FormBorderStyle = FormBorderStyle.Sizable; This the default so your form is probably resizeable by default. To make the controls grow and shrink when the form is resized use anchors. https://www.c-sharpcorner.com/UploadFile/c5c6e2/dynamically-resizing-controls-on-windows-forms-using-ancho/ Does this answer your question ?
19th May 2019, 8:41 PM
sneeze
sneeze - avatar