Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docking a StatusStrip control on Bottom and a Panel on Right in an MDI Form?

I have a MDI parent form as the main window of my application. Within this Form I also have two other Control a Panel and a StatusStrip which are docked to the Right and Bottom respectively.

My issue is that the StatusStrip does not "fill" the entire bottom of the Form. It is stopped by the Panel on the right.

enter image description here

I would have figured by the DockStyle graphic in the properties window of Visual Studio that the Bottom docked Control would fill the entire bottom of the Form.

enter image description here

Is there a way to have the StatusStrip fill the entire bottom and have the Panel docked to the Right while still maintaining the MDI area? (undocked controls in the MDI area allow windows to be "hidden" behind them).

like image 257
KDecker Avatar asked Feb 16 '16 17:02

KDecker


1 Answers

The order matters when the controls are placed on the form. To correct that, you can use the Bring-To-Front and Send-To-Back methods.

While in the designer, right mouse-click the StatusStrip control and select the Send-To-Back option, or alternatively, select the panel control, and select the Bring-To-Front option.

like image 142
LarsTech Avatar answered Sep 20 '22 19:09

LarsTech