Home All Groups Group Topic Archive Search About

How to keep statusStrip at the bottom of the ToolStripContainer

Author
22 Sep 2006 8:06 AM
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

Author
22 Sep 2006 10:14 AM
gene kelley
Show quote Hide quote
On 22 Sep 2006 01:06:13 -0700, "jcvoon" <jcv***@maximas.com.my> wrote:

>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
Author
23 Sep 2006 3:40 AM
jcvoon
gene kelley :

>4) Right-Click StatusStrip, click "Send To Back"

Thanks. It work !

JCVoon