TableLayoutPanel and StatusTrip toolbar overlapping

1.6k Views Asked by At

I have a winforms vb.net app. In this winform I have placed two components:

  • TableLayoutPanel
  • StatusStrip toolbar

I am trying to put StatusStrip toolbar at the bottom of the winforms and TableLayoutPanel to fit all the rest of the screen, so I set below properties for this two components:

  • TableLayoutPanel: Dock:Fill
  • StatusStrip toolbar: Dock:Bottom

The problem is that TableLayoutPanel and StatusStrip toolbar overlaps, that is, StatusStrip toolbar appears over TableLayoutPanel at the bottom of the winforms.

I have tried to put TableLayoutPanel within a panel, and StatusStrip toolbar within another panel as well, and then set the dock properties for panel, the one containing tablelayoutpanel to fill and the one containing StatusStrip toolbar to bottom but it does not work.

1

There are 1 best solutions below

0
On

The problem is the hierarchy of your controls. This can be changed using the Document Outline window (Ctrl+Alt+T, or View>Other Windows>Document Outline). Drag the TableLayoutPanel to above the StatusStrip.

Wrong (notice the overlap) enter image description here

Right enter image description here