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
close icon

Hide / Show status bar

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

1 Reply

PS Prakash S Syncfusion Team 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

Live Chat Icon For mobile
Up arrow icon