8

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.

2
  • 2
    It is just a simple Z-order problem. Right-click the TLP and select Bring to Front. Commented Feb 19, 2016 at 10:21
  • Yes, that works! thanks!
    – Willy
    Commented Feb 19, 2016 at 18:28

1 Answer 1

16

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.