>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.