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()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Docking of controls 4
docking in vb 1
Docking 2
Universal Dock 13
Multi-panel dock 1
Toolbar Docking Mystery 2
Docking problems 2
Order in which controls are docked 2

Back
Top