How best create Windows form for dragging bigger/smaller?

  • Thread starter Thread starter Ronald S. Cook
  • Start date Start date
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
 
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.
 
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/>
 
Back
Top