scvb
asked on
Q: How to minimise all open windows
Hi,
Can some kind soul please let me know how to minimise all open windows on the desktop.
(VB5/SP3 / WIN95/98)
Many thanks.
Tony
Can some kind soul please let me know how to minimise all open windows on the desktop.
(VB5/SP3 / WIN95/98)
Many thanks.
Tony
ASKER
I may have misphrased my question ...
I want to minimise all open PROGRAM windows on the desktop. Your sample will work well if only my app's forms needed to be minned, but not other (external) apps.
Looking forward to hearing from you.
Regards,
Tony
I want to minimise all open PROGRAM windows on the desktop. Your sample will work well if only my app's forms needed to be minned, but not other (external) apps.
Looking forward to hearing from you.
Regards,
Tony
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Ooops!!!
Sorry, I accidentally missed out the 'preserve' keyword in the redim statement about half way through the main routine. Just change the line:
ReDim lMinimList(UBound(lMinimLi st) + 1)
to read
ReDim Preserve lMinimList(UBound(lMinimLi st) + 1)
and everything should be fine!!!
Sorry 'bout that!!
Pete
Sorry, I accidentally missed out the 'preserve' keyword in the redim statement about half way through the main routine. Just change the line:
ReDim lMinimList(UBound(lMinimLi
to read
ReDim Preserve lMinimList(UBound(lMinimLi
and everything should be fine!!!
Sorry 'bout that!!
Pete
ASKER
Thanks very much indeed. Yes, the Redim statement fixed it!!
Brilliant answer!
All the best.
Kind regards,
Tony Jones
Southern Cross Visual Basic Code and Links
http://www.geocities.com/capecanaveral/6740/index.html
Brilliant answer!
All the best.
Kind regards,
Tony Jones
Southern Cross Visual Basic Code and Links
http://www.geocities.com/capecanaveral/6740/index.html
Dim frm as Form
For Each frm In Forms
frm.WindowState = vbMinimized
Next frm
This program scan through all forms in the desktop and minimize them.