Windows Develop Bookmark and Share   
 index > Windows Forms General > status strip no longer visible after form resize
 

status strip no longer visible after form resize

I have a form with a status strip docked at the bottom

When the form is resized (i.e. New Size(x,y) the status strip is no longer visible at the bottom of the form.

How do I correct this?

chare  Thursday, August 03, 2006 2:06 AM

Hi,

Are you doing something in the resize event on the form that would be causing a problem ? How do you resize the form programatically or just using a the normal ui ?

James

James Knowles  Thursday, August 03, 2006 7:20 AM

Hi,

My guess would be, you might be resizing it over the status strip which is making it invisible. Could you check your new co-ordinates of the form?

Thank you,
Bhanu.

Bhanu Prakash Nunna - MSFT  Thursday, August 03, 2006 10:31 PM

When I do the resize, it is simply

Me.Size(x,y)

the form starts with a size of 610,635. the StatusStrip appears okay. the details are

StatusStrip size = 604,22

StatusStrip localtion = 0,581

Doing

Me.Size(456,477)

the strip disappears. I added some Console output code.

When I do

Me.Size(456,477)

the StatusStip details become

StatusStrip size = 450,22), so that is within the form width

StatusStrip location = 0, 423

the new image on the form is 450x413, so it should be visible.

The statusStrip Y pos is within the form size.

It doesn't seem to matter what size I make the form this way, the StatusStrip is only visible at the original size.

chare  Friday, August 04, 2006 12:31 AM
Yep - thought so too. I posted a reply with details to another message in this thread.
chare  Friday, August 04, 2006 12:31 AM

You can use google to search for other answers

Custom Search

More Threads

• list box
• Changing DataMember shown in DataGridView
• Speeding form draw behavior
• Cast or convert?
• C# SetItemData() please help
• SSIS Download & installing
• Help with a generic RtlMoveMemory
• disabling ctlrs in the form?
• how sort item in "class name" window?
• How to programatically deselect a listbox item