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?

[210 byte] By [chare] at [2007-12-23]
# 1

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

JamesKnowles at 2007-8-30 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 2

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.

BhanuPrakashNunna-MSFT at 2007-8-30 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 3

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 at 2007-8-30 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 4
Yep - thought so too. I posted a reply with details to another message in this thread.
chare at 2007-8-30 > top of Msdn Tech,Windows Forms,Windows Forms General...