• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1619
  • Last Modified:

Toolstrip and Docking problem

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
jindalee
Asked:
jindalee
  • 3
  • 3
1 Solution
 
Wayne Taylor (webtubbs)Commented:
Right-click the toolstrip control and select "Send to Back".

Wayne
0
 
jindaleeAuthor Commented:
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
 
Wayne Taylor (webtubbs)Commented:
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
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
jindaleeAuthor Commented:
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
 
Wayne Taylor (webtubbs)Commented:
Try sending the MenuStrip to front or back.
0
 
jindaleeAuthor Commented:
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now