Home All Groups Group Topic Archive Search About

Docking panels, one at top and other at left

Author
27 Mar 2005 2:45 PM
Ronchese
Hi All,

I 'm doing a form that have two dockable panels, one at top and other at
left (for sample).

The user can double-clicks the panels and they become floating, which
double-clicked again, come back to dock.

The problem is, according with the re-dock order, the panels accommodate
themselves in different forms. I need the panels
be dockable this form: the top panel must always accommodate in full area
(like toolbars). And the left panel always accommodate
the remain area of the winform.

How can I force that?

Thx in advance.

[]s
Cesar

Author
27 Mar 2005 4:33 PM
Herfried K. Wagner [MVP]
"Ronchese" <ronch***@smlinfo.com.br> schrieb:
> I 'm doing a form that have two dockable panels, one at top and other at
> left (for sample).
>
> The user can double-clicks the panels and they become floating, which
> double-clicked again, come back to dock.
>
> The problem is, according with the re-dock order, the panels accommodate
> themselves in different forms. I need the panels
> be dockable this form: the top panel must always accommodate in full area
> (like toolbars). And the left panel always accommodate
> the remain area of the winform.

Docking order is determined by the controls' Z-index.  You can change a
control's Z-index by calling its 'BringToFront' or 'SendToBack' methods.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
28 Mar 2005 4:24 PM
Cesar Ronchese
That works! Thanks.

[]s
Cesar


Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:ObtSspuMFHA.2136@TK2MSFTNGP14.phx.gbl...
"Ronchese" <ronch***@smlinfo.com.br> schrieb:
> I 'm doing a form that have two dockable panels, one at top and other at
> left (for sample).
>
> The user can double-clicks the panels and they become floating, which
> double-clicked again, come back to dock.
>
> The problem is, according with the re-dock order, the panels accommodate
> themselves in different forms. I need the panels
> be dockable this form: the top panel must always accommodate in full area
> (like toolbars). And the left panel always accommodate
> the remain area of the winform.

Docking order is determined by the controls' Z-index.  You can change a
control's Z-index by calling its 'BringToFront' or 'SendToBack' methods.

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