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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Hide / Show status bar

Thread ID:





296 May 28,2002 03:37 PM UTC May 28,2002 07:27 PM UTC WinForms 1
Tags: Tools
Nik Vale
Asked On May 28, 2002 03:37 PM UTC

Hi, I am using the docking manager on an MDI container form with a status bar. I would like to be able to Show() / Hide() the status bar. The problem is that calling Hide() does not resize the client area but instead the area where the status bar is located is just shown blank. If I remove the statusBar from the form's collection of controls the result is initially the same, however if I resize the window the status bar disappears (if removed) or appears (if added) as expected. I have tried calling RecalcHostFormLayout() and this has no effect. Thanks in advance, Nik

Prakash S [Syncfusion]
Replied On May 28, 2002 07:27 PM UTC

Nik, Thank you for bringing this issue to our attention. I was able to verify the condition and have filed a bug-report. The problem will be fixed for the forthcoming release of Essential Tools RC2. For the time being, you can workaround the condition by toggling the statusbar's Dock property before showing/hiding it. The following code should give you an idea,
if(this.statusBar1.Visible == true)
	this.statusBar1.Dock = DockStyle.None;
	this.statusBar1.Dock = DockStyle.Bottom;
Thanks, Prakash Syncfusion


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon