By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,258 Members | 1,213 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,258 IT Pros & Developers. It's quick & easy.

How best create Windows form for dragging bigger/smaller?

P: n/a
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
Mar 3 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"Ronald S. Cook" <rc***@westinis.com> wrote in message
news:e%*****************@TK2MSFTNGP10.phx.gbl...
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.
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.


Mar 3 '06 #2

P: n/a
"Ronald S. Cook" <rc***@westinis.com> schrieb:
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/>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Mar 3 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.