How to keep statusStrip at the bottom of the ToolStripContainer

  • Thread starter Thread starter jcvoon
  • Start date Start date
J

jcvoon

Hi:

I'm using VS2005, I've create a winform with the following controls:

Add a ToolStripContainer
Set it to dock to the form (Fill)
Click in the top section.
Add a menu strip
Add a tool strip.
Add another tool strip.
Click in the bottom section.
Add a StatusStrip.

At runtime when i drag a tool strip from topToolStripPanel and drop it
into bottomToolstripPanel the toolStrip may dock to the bottom, i want
to avoid this, i want the StatusStrip always at the bottom, is there
any property for the StatusStrip so that it is always dock to the
bottom of the form ? the StatusStrip.Dock property seem doesn't work.

Please help
Thanks
JCvoon
 
Hi:

I'm using VS2005, I've create a winform with the following controls:

Add a ToolStripContainer
Set it to dock to the form (Fill)
Click in the top section.
Add a menu strip
Add a tool strip.
Add another tool strip.
Click in the bottom section.
Add a StatusStrip.

At runtime when i drag a tool strip from topToolStripPanel and drop it
into bottomToolstripPanel the toolStrip may dock to the bottom, i want
to avoid this, i want the StatusStrip always at the bottom, is there
any property for the StatusStrip so that it is always dock to the
bottom of the form ? the StatusStrip.Dock property seem doesn't work.

Please help
Thanks
JCvoon

1) Add StatusStrip (docks bottom by default)
2) Add ToolStrip Container, dock fill
3) Add menu and toolstrips
4) Right-Click StatusStrip, click "Send To Back"
5) Run and test.


Gene
 
Back
Top