Solved

Toolstrip and Docking problem

Posted on 2009-04-04
6
1,412 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

743 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

11 Experts available now in Live!

Get 1:1 Help Now