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

Dock questing in VB .NET 2003

P: n/a
jvb
Hey all,

I am using a floating toolbar control on a thick app i am writing and i
am having a slight issue. When i set the datagrid on the form to a dock
of TOP, then specify the toolbars to be docked on top, the toolbars are
added beneath the grid as opposed to on top of it. When I execute do
this same thing in C#, it works fine. Any suggestions? Is there a way
to force the Toolbar to be docked first, then the datagrid?

Feb 13 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Docking depends on the z-order of the components.
______________________________________________
The Grim Reaper

"jvb" <go*****@gmail.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
Hey all,

I am using a floating toolbar control on a thick app i am writing and i
am having a slight issue. When i set the datagrid on the form to a dock
of TOP, then specify the toolbars to be docked on top, the toolbars are
added beneath the grid as opposed to on top of it. When I execute do
this same thing in C#, it works fine. Any suggestions? Is there a way
to force the Toolbar to be docked first, then the datagrid?

Feb 13 '06 #2

P: n/a
"jvb" <go*****@gmail.com> schrieb:
I am using a floating toolbar control on a thick app i am writing and i
am having a slight issue. When i set the datagrid on the form to a dock
of TOP, then specify the toolbars to be docked on top, the toolbars are
added beneath the grid as opposed to on top of it. When I execute do
this same thing in C#, it works fine. Any suggestions? Is there a way
to force the Toolbar to be docked first, then the datagrid?


Use the "Bring to front" and "Send to back" context menu items to change the
Z-order of the controls which is used to control the dock order.

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

Feb 13 '06 #3

P: n/a
jvb
This hasn't worked for me. I have tried bringing the toolbars to the
front at both design and run time and the toolbars are still getting
added below the datagrid.

Me.DataGrid1.SendToBack()
Me.ToolBar1.BringToFront()
Me.ToolBar2.BringToFront()
Me.ToolBar3.BringToFront()

Feb 13 '06 #4

P: n/a
jvb
I had it backwards...thanks for the input!!

Feb 13 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.