I have a main menu form that launches another form, which can be another menu which then launches another form, an so on. At some times, there are 4 or more forms visible on the desktop. I would like to be able to minimize the form that has focus and have it minimize all of the other forms.
I have a frmParent that all of my other forms inherit from, either directly or through another parent form that inherits this form. I was hoping to add some code to frmParent in the Resize event handler that would minimize all of the forms.
Thoughts on how to best do this?
PS - I tried to iterate through Application.OpenForms and set WindowState to Minimized, but it actually closes the forms.




Reply With Quote