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

Docking of controls

P: n/a
Docking of controls

I have a ToolBar on top of my form. The property Dock is set to Top. Beneath
that I have a Panel as have the same Dock setting set to Top. The panel is
Beneath the ToolBar because the ToolBar was inserted to my form as the first
of the two controls. How can I change the position of these controls after
the design is made? I would prefer not to set the Dock property to none,
because it effects the docking of controls beneath these two controls.

In other words, is there a way to control which control is the topmost of
two controls, both with it's dock property set to top?

TIRislaa
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"Tor Inge Rislaa" <to************@rislaa.no> schrieb:
In other words, is there a way to control which control is the topmost of
two controls, both with it's dock property set to top?


Take a look at the controls' 'BringToFront' and 'SendToBack' methods and the
according context menu entries in the Windows Forms designer.

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

Nov 21 '05 #2

P: n/a
The problem is not that the controls are covering each other. More of the
kind concerning the .top and .left possition of the control.

TIRislaa

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> skrev i melding
news:Ot**************@TK2MSFTNGP10.phx.gbl...
"Tor Inge Rislaa" <to************@rislaa.no> schrieb:
In other words, is there a way to control which control is the topmost of
two controls, both with it's dock property set to top?


Take a look at the controls' 'BringToFront' and 'SendToBack' methods and
the according context menu entries in the Windows Forms designer.

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

Nov 21 '05 #3

P: n/a
"Tor Inge Rislaa" <to************@rislaa.no> schrieb:
The problem is not that the controls are covering each other. More of the
kind concerning the .top and .left possition of the control.


'BringToFront' and 'SendToBack' can be used to change the docking order, for
example:

A
B

=>

B
A

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

Nov 21 '05 #4

P: n/a
Thank you!

TIRislaa

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> skrev i melding
news:Om**************@TK2MSFTNGP15.phx.gbl...
"Tor Inge Rislaa" <to************@rislaa.no> schrieb:
The problem is not that the controls are covering each other. More of the
kind concerning the .top and .left possition of the control.


'BringToFront' and 'SendToBack' can be used to change the docking order,
for example:

A
B

=>

B
A

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

Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.