How best create Windows form for dragging bigger/smaller?

R

Ronald S. Cook

What is the best way to structure my Windows form so that when it is dragged
bigger (i.e. maximized) or smaller, the controls will reorganize themselves
"properly"?



Assume I have 4 logical sections of controls. Do I create 4 panels and dock
them a certain way? I'm just looking for the most normal/best practice.



Thanks very much,

Ron
 
H

Homer J Simpson

Ronald S. Cook said:
What is the best way to structure my Windows form so that when it is
dragged bigger (i.e. maximized) or smaller, the controls will reorganize
themselves "properly"?

Use Anchor or Dock appropriately. If that isn't enough, code it.
 
H

Herfried K. Wagner [MVP]

Ronald S. Cook said:
What is the best way to structure my Windows form so that when it is
dragged bigger (i.e. maximized) or smaller, the controls will reorganize
themselves "properly"?


First, take a look at the controls' 'Dock' and 'Anchor' properties.

If you are using .NET 2.0:

Check out the FlowLayoutPanel and TableLayoutPanel controls, which are
avialable on the "Containers" tab of VS 2005's toolbox.

..NET 1.0/1.1:

Simple Layout Managers
<URL:http://www.dotnet.jku.at/projects/slm/>
 

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