Solved

Toolstrip and Docking problem

Posted on 2009-04-04
6
1,462 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Suggested Solutions

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

679 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