Question

My ToolStrip covers my TabControl. I have played with the docking and anchoring but cannot figure out how to stop this.

My TabControl has Dock set to Fill.

Whatever my ToolStrip has Dock set to, it still covers the TabControl

ToolStrip covering TabControl

Était-ce utile?

La solution 2

I had to use a ToolStripContainer control, and then put the TabControl within the ContentPanel of the ToolStripContainer and the ToolStrip in the TopToolStripPanel of the ToolStripContainer.

As a note, once the ToolStrip was in the TopToolStripPanel, I had to use the keyboard keys to move its position left and right as using the mouse kept placing the ToolStrip out of the TopToolStripPanel.

Also, using the View - Other Windows - Document Outline as LarsTech suggested was a HUGE help is placing the ToolStrip and TabControl within the ToolStripContainer

Autres conseils

  1. TabControl has Dock set to Fill.
  2. ToolStrip has Dock set to Left.
  3. Right mouse click the ToolStrip and try selecting Send to Back.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top