toolStrip and splitContainer problem

I have a splitContainer which is set to Dock=Fill but when I added the toolStrip which is Dock=Top I have noticed the top part of the splitContainer moved below the toolStrip

s ho can I make the toolStrip Dock=Top and the rest of the size assigned to the splitContainer




Answer this question

toolStrip and splitContainer problem

  • sql server2000

    You Should Frist Add ToolStrip, Then add SplitContainer...

    To acomplish this right now, In InitializeComponent Remove SplitContainer1.Panel1.Controls.Add(this.SplitContainer1)

    After this.Controls.Add(this.SplitContainer1) Add this.Controls.Add(this.SplitContainer1)

    It have to be AFTER Line this.Controls.Add(this.SplitContainer1)

    Best Regards

    Misa Simic


  • AlucardHellSing

    Hi,

    this is most likely the Z-order issue. Try clicking on the splitContainer with the right mouse button and select Bring to Front.

    Andrej



  • toolStrip and splitContainer problem