Windows Develop Bookmark and Share   
 index > Windows Forms General > Controls of Form could auto fill with the form size?
 

Controls of Form could auto fill with the form size?

Always creates the form with vs2003 that set default value of size to 300,300. but i resize the form to custome size and drag some other controls(like datagrid or textbox) on it.

when running the app you will found that is right. however set the form stateto maximized whichcontrols keep the size original.

how to implementsthe controls fill automaticallysize of Form?

i want have a smart (easy and quickly) way to solve the problem?

thanks.

Benyu  Monday, April 24, 2006 4:57 PM

The two settings you want to look into are Anchor and Dock.

Anchor lets you "Pin" one or more sides of your controls to the parent form, allowing it to "Stretch" as the form resizes.

Dock allows docking on one or all sides of the form.

Experimenting is the easiest way to learn the details of them.

John Arlen  Monday, April 24, 2006 9:14 PM

The two settings you want to look into are Anchor and Dock.

Anchor lets you "Pin" one or more sides of your controls to the parent form, allowing it to "Stretch" as the form resizes.

Dock allows docking on one or all sides of the form.

Experimenting is the easiest way to learn the details of them.

John Arlen  Monday, April 24, 2006 9:14 PM

You can use google to search for other answers

Custom Search

More Threads

• MDI Child controls mirrored
• ResourceReader, resource not found
• Name all the methods of deploying a .NET assembly
• Natural numeric sort in listview controls
• Localizing winforms
• MDIChild Login Form
• Using specific version of dll (in \bin) rather than GAC.
• Anyone know how to change color for a 3D button like this button control does:
• TAPI (or Phone Dialer) in C# .NET
• Load web image problem