Click here to Skip to main content
15,913,685 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi all,
i have the controls in windows forms.By default i set some size to all controls.
but when ever the content is more in that controls scroll bars are displaying.
When ever the content is less,white spaces are displaying.
In both cases form design is not looking good..

How to adjust the controls size according the controls content.

Please help me...
Posted
Updated 29-Jun-11 20:34pm
v2

1 solution

Don't tell us it's urgent. That you can't use google is not urgent for us. That you have no books, is not our problem. Free help comes when it comes. Pay for help, or accept that you are in no place to make demands.

You can specify how your control resizes itself with the Dock or Anchor properties in the designer. Anchor typically works best. Then when you resize your form, the controls will follow.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900