473,396 Members | 1,966 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Dock questing in VB .NET 2003

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
4 3626
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
"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
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
jvb
I had it backwards...thanks for the input!!

Feb 13 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: JohnnyB via DotNetMonster.com | last post by:
Hello, I dont know, if this has already been asked before, I'm sorry if so. VisualBasic: My problem (happens with TreeView, not with AxWebBrowser): treeview uses (no matter, if dock = left,...
2
by: James | last post by:
I have a forms application which has many controls such as buttons,labels,listviews,text boxes etc. If you set the window size to maximum size so that it would expand to the size of the screen the...
2
by: Agnes | last post by:
I got one progress bar , one panel in my form. First , I put the progress bar at the bottom of the form and set "dock" to bottom. It runs very well. then, I put the panel in the form (set the dock...
0
by: A_PK | last post by:
Hi I got the following environment.......Form1 and inside Form1, got Panel1.... I also got another new Form ...named Form2... Form1, Panel1 Form2 Inside Form1, I click a button to show Form2...
3
by: Dennis | last post by:
I have been trying all evening to add two panels to a form with a horizontal splitter in middle. How can I do this. I have one panel docked to top and one docked to bottom. I have tried all of...
4
by: Richard Ragon | last post by:
I dont profess to be a master at SQL statements. Thanks for your help, if anyone can give it. I have a database that has a run column. A user can place in that column a number, such as 1, 2,...
0
by: myPosts | last post by:
Hi all, I am having problem at a time of using datagrid in c#.net. On currentcell change event of datagrid i am displaying one combobox and setting location of combobox depending on location...
7
by: Zytan | last post by:
I just wanted a little practice with the WebBrowser control, so I did the VB guided tour example here in C#: http://msdn2.microsoft.com/en-us/library/a08t4ke7(VS.80).aspx The tutorial asks to put...
12
by: Rotsey | last post by:
Hi, I have not had a good answer to this question. I put a menustrip on a form and so it is a main menu in affect. Now I put a webbrowser control on the form and set it dock fill. Of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.