Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Max/Min buttons

Status
Not open for further replies.

wigwug

Programmer
Feb 13, 2005
35
US
Is there any way of determining if a maximize or minimize button has been pressed on a form. In a MDI document I need to be able to restore the child window to it's original size.

Tkx
 

Wigwug,

As far as I know, you can check to see if the form has been maximised or minimised (by looking at the WindowState property), but that doesn't tell you how it was maximised or minimised. It might have been done by the user clicking the buttons you mentioned, but it might just as well have been done from the control menu, or the Windows taskbar, or programmatically.

Is there any special reason you know to know specifically if those buttons were clicked?

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 

Tamar,

The Resize event fires when you click on those buttons

True, but doesn't it also fire if you resize by selecting from the control menu or by right-clicking in a taskbar button? How would Wigwug be able to distinguish between those actions (assuming that is what he wants to do)?

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
Yeah, it fires on any Resize. I guess the question is why does he need to know.

Tamar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top