Domanda

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

È stato utile?

Soluzione 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

Altri suggerimenti

  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.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top