We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

StatusStripEx visible/invisible

Thread ID:

Created:

Updated:

Platform:

Replies:

74240 Jun 4,2008 06:05 AM Jun 10,2008 02:38 AM Windows Forms 4
loading
Tags: Tools
Administrator [Syncfusion]
Asked On June 4, 2008 06:05 AM

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




Fathima Shalini P [Syncfusion]
Replied On June 4, 2008 07:48 AM

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







Fathima Shalini P [Syncfusion]
Replied On June 4, 2008 08:37 AM

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


Administrator [Syncfusion]
Replied On June 4, 2008 11:03 AM

Hi Fathima,

your workaround is running well.

Thank for your support, best regards

Michael


Fathima Shalini P [Syncfusion]
Replied On June 10, 2008 02:38 AM

Hi Michael,

Thank you for your update.

Regards,
Fathima


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;