StatusStripEx visible/invisible

Hi,

I've a RibbonForm with a StatusStripEx docked at BottomMost.

Now I want to set this StatusStripEx depending on a menu item to visible/invisible. Unfortunately setting it to invisibe will hide the strip, but the background of the strip still remains visible.

How can I hide the backgruod too?

Best regard

Michael




4 Replies

FS Fathima Shalini P Syncfusion Team June 4, 2008 11:48 AM UTC

Hi Michael,

Thank you for your interest in Syncfusion Products.

When using DockStyleEx.BottomMost in StatusStripEx, extra area is created below the RibbonForm and StatusStripEx is added in it. So when setting its visibility to false, we are just hiding it not removing. So the background will be displayed after hiding it too. It is its default behaviour.

Please let me know if any concerns.

Regards,
Fathima








FS Fathima Shalini P Syncfusion Team June 4, 2008 12:37 PM UTC

Hi Michael,

To hide the background of the StatusStripEx when hiding it, as a workaround, we can set the DockingStyle to None when hiding it and set DockingStyle to BottomMost when showing again. The following code snippet illustrates this:


private void showStatusBarToolStripMenuItem_Click(object sender, EventArgs e)
{
this.statusStripEx1.Dock = DockStyleEx.BottomMost;
this.statusStripEx1.Visible = true;

}

private void hideToolStripMenuItem_Clickobject sender, EventArgs e)
{
this.statusStripEx1.Dock = DockStyleEx.None;
this.statusStripEx1.Visible = false;
}


Please refer the below sample in the following link:

http://websamples.syncfusion.com/samples/Tools.Windows/F74240_1/main.htm

Please let me know if any concerns.

Regards,
Fathima



AD Administrator Syncfusion Team June 4, 2008 03:03 PM UTC

Hi Fathima,

your workaround is running well.

Thank for your support, best regards

Michael



FS Fathima Shalini P Syncfusion Team June 10, 2008 06:38 AM UTC

Hi Michael,

Thank you for your update.

Regards,
Fathima


Loader.
Up arrow icon