Automatic resizing of controls inside forms

V

Vaughn

Where can I get information on automatic resizing of controls when the form
changes size (eg. if I dynamically increase the size of my form, the
listview inside should automatically increase in size ).

Thanks.
 
N

Nicholas Paldino [.NET/C# MVP]

Vaughn,

I think that what you want to look at is the Anchor property on the
control. The Anchor property will allow you to anchor sides of the control
to the container, so that when the control container is resized, the control
itself sizes accordingly.

Hope this helps.
 
T

Tom

You may also want to look at using the Dock property and the DockPadding
propery of the control container. These, together with the Anchor
properties, give you a lot of flexibility.
Tom Clement
Apptero, Inc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top