win form state

  • Thread starter Thread starter Pohihihi
  • Start date Start date
P

Pohihihi

Why FromWindowState still shows maximized even after the size is changed to
something normal? Is there a way to find the true WindowState of a form?
 
Pohihihi said:
Why FromWindowState still shows maximized even after the size is changed
to something normal? Is there a way to find the true WindowState of a
form?

Are you sure you read the "WindowState" property?

Willy.
 
Sorry no code as I deleted the whole thing in frustration. I will recode and
post later. For now it is like following:

Create form with WindowState = Mezimized in design time settings
Open form (with some kind of debugging field, I used variables to get the
state in Location changed and Size changed event)
Form will open mazimized
Click on the min/max button on the form
Form reduce to design time size
Read the value for windowstate and it says maximized.

Thanks.


Nicholas Paldino said:
Can you show an example where this happens?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Pohihihi said:
Why FromWindowState still shows maximized even after the size is changed
to something normal? Is there a way to find the true WindowState of a
form?
 
Back
Top