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 / Windows Forms / WinForm General / September 2004

Tip: Looking for answers? Try searching our database.

How to catch max button click event? (C#)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Deasy - 22 Sep 2004 11:25 GMT
I have MDIForm and some ChildForms in it. When user click maximize button in
one of child form, I want to be alerted that user has just been clicked max
button.
My purpose to do this, I want to set property Sizing Grip in status bar on
that child form to be false when it's maximized.

fyi:
I did catch the event(after user click Max button in child form) in event
Form.Resize(). But I get confused to know whether it's maximized or not. I
tried to compare Maximize size between the one that I got from user and the
other one that from System.Windows.Form.SystemInformation.MaxWindowTrackSize.
But they are different, so I can not use the one from SystemInformation.

Any solution for this? Great thanks for any help!!
Deasy
Stoitcho Goutsev \(100\) [C# MVP] - 22 Sep 2004 14:18 GMT
Hi Deasy,

On your Resize event handler check form's WindowState property. It will tell
you whether the form is minimized, maximixed or in normal state

Signature

HTH
Stoitcho Goutsev (100) [C# MVP]

>I have MDIForm and some ChildForms in it. When user click maximize button
>in
[quoted text clipped - 15 lines]
> Any solution for this? Great thanks for any help!!
> Deasy

Rate this thread:







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.