Re: making elements of a window form resizable

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



You want to look into the following things in WinForms:

Anchoring
Docking
Panels
Splitters

Basically, you put a group of controls within a panel, and either dock
them or anchor them so that when the Panel changes size, the controls
within it do intelligent things.

Then you put panels within other panels, and dock them so that when the
higher-level panel resizes, the inner panels do intelligent things.

You will want to give the user direct control over some panel sizing,
and for this you add a Splitter.

Then arrange the highest-level panels and splitters within the Form,
dock them appropriately, and you're done.

It's sort of hard to describe without seeing it in action. :)

.



Relevant Pages

  • Re: Slide Panel
    ... > The DevExpress component Slide Panel, is not quite what I had in mind. ... much more than just sliding dock panels. ... can move docks around anywhere you want, have controls dock into tab ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Larger scale app development using CF
    ... I never put more than 4 controls on a panel and never more than 3 panels on ... >> with only a few screens at most (I know the number of screens does ... >> The field service demo groups screens together as a set of panels ...
    (microsoft.public.dotnet.framework.compactframework)
  • RE: how to resize tab control?
    ... but you can arrang your controls around using Panels. ... I use Panels on my Forms depending on how many I am using and I set the Dock ... > I have a tab control on a form. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Tabindex
    ... > Auf einem Formular habe ich ein Tabcontrol mit 3 Karteireitern. ... > Auf jedem Karteireiter habe ich die textBox-Controls auf Panels ... damit um die Controls ein Rahmen gezogen ist. ... Anscheinend hast Du die TabIndex als eine globale Einstellung ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: Resizing Form
    ... The speed of redraw depends entirely on the controls that are being drawn. ... the double buffering system only works on a per-window basis ... > I am having a number of panels containing other panels and controls on ...
    (microsoft.public.dotnet.framework.windowsforms)