Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / December 2005

Tip: Looking for answers? Try searching our database.

win form state

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pohihihi - 14 Dec 2005 11:44 GMT
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?
Nicholas Paldino [.NET/C# MVP] - 14 Dec 2005 13:42 GMT
   Can you show an example where this happens?

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> 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 - 14 Dec 2005 20:57 GMT
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.

>    Can you show an example where this happens?
>
>> 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?
Willy Denoyette [MVP] - 14 Dec 2005 14:22 GMT
> 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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.