Solved

Toolstrip and Docking problem

Posted on 2009-04-04
6
1,427 Views
Last Modified: 2013-11-27
I have an application with a tab control. The tab control dock property is set to Fill.

If I place a toolstrip along the top of the screen, the tabs on the tab control are hidden beneath the toolstrip.

Also, the WebBrowser control I use on another tab is partially obscured by the StatusBar at the bottom.

How do I include the toolstrip and avoid having the tabs hidden beneath it?
0
Comment
Question by:jindalee
  • 3
  • 3
6 Comments
 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 24070876
Right-click the toolstrip control and select "Send to Back".

Wayne
0
 
LVL 1

Author Comment

by:jindalee
ID: 24071119
I tried that. The toolstrip swapped places with the menu bar! But I could see the tabs. So how do I get the menu bar to stay above the toolstrip?
0
 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 24071151
Do you mean the ToolStrip is now at the bottom of the form??

My only suggestion, short of seeing your form for myself, is to experiment sending controls to back or front until the desired effect is achieved.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 1

Author Comment

by:jindalee
ID: 24073184
No. Before adding the toolstrip, I had the title bar with the menu bar immediately beneath it. I place the toolstrip on the form immediately beneath the menu bar. When I then set the tab control docl propertyto Fill, the sequence is Title bar, toolstrip, menu.

You can see the effect in the attached image
ToolstripError.JPG
0
 
LVL 47

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 500 total points
ID: 24073215
Try sending the MenuStrip to front or back.
0
 
LVL 1

Author Closing Comment

by:jindalee
ID: 31566964
Strange solution but eventually it worked.  I had to:
    remove the Fill from the TabControl Dock property;
    then add the toolstrip;
    then put back the Fill in the TabControl Dock property;
    then send the toolstrip to the back (which swapped the menu strip and toolstrip round)
    then send the menu strip to the back
After all that I had themenu bar sitting above the toolstrip and did not have the TabControl tabs hidden.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now