Dock questing in VB .NET 2003

  • Thread starter Thread starter jvb
  • Start date Start date
J

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?
 
Docking depends on the z-order of the components.
______________________________________________
The Grim Reaper
 
jvb said:
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.
 
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()
 
Back
Top