Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Minimize all forms with one form
Message
From
17/05/2005 06:06:49
 
 
To
17/05/2005 00:07:00
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01014756
Message ID:
01014814
Views:
21
>Dear Experts
>
>In my project, I use all forms with property=ShowWindow=2
>Sometimes I open many Forms, when I minimize form, that is infront of all forms, then only that form is minimized.
>
>But I want all other opend forms must also minimize. I mean when I minimize any open form then my exe should completly mimimize and then I press Restore, previous all opend form should restore.
>
>Please help

Tariq

Something like the following (or using "For each loForm ..." etc.):
lnFormCount              = _SCREEN.FormCount
If lnFormCount > 0
    For lnFormNo = 1 to lnFormCount 
      lcForm             = _SCREEN.Forms( lnFormNo).Name
      lcForm.WindowState = 1
    EndFor
Endif
Trouble is (never having done this before) I don't know what Event to put this in. Ideally it would be in a "Minimise" event for every form but this doesn't exist.

Still, HTH

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform