471,321 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,321 software developers and data experts.

win form state

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?
Dec 14 '05 #1
3 1834
Can you show an example where this happens?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Pohihihi" <no*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
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?

Dec 14 '05 #2

"Pohihihi" <no*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
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.

Dec 14 '05 #3
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 [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:eR**************@TK2MSFTNGP15.phx.gbl...
Can you show an example where this happens?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Pohihihi" <no*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
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?


Dec 14 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Jack | last post: by
2 posts views Thread by ColinWard | last post: by
3 posts views Thread by dskillingstad | last post: by
4 posts views Thread by Lee Chapman | last post: by
3 posts views Thread by hermand | last post: by
3 posts views Thread by underground | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.