Dock questing in VB .NET 2003

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?
 
T

The Grim Reaper

Docking depends on the z-order of the components.
______________________________________________
The Grim Reaper
 
H

Herfried K. Wagner [MVP]

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.
 
J

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

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


Top