Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TableLayoutPanel and StatusTrip toolbar overlapping

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.

like image 353
Ralph Avatar asked Feb 19 '16 10:02

Ralph


1 Answers

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

like image 76
Jens Avatar answered Nov 03 '22 02:11

Jens