Windows Develop Bookmark and Share   
 index > Windows Forms General > How to minimize all windows
 

How to minimize all windows

I have x number of  forms open at the same time.  How can I minimize all the forms with one event?

something similar to:   Me.WindowState = FormWindowState.Minimized

but at the application level.

Thanks
MigrationUser 1  Tuesday, November 04, 2003 8:49 AM
You could loop through the Forms collection and minimize them all. There may be a simpler way, but I'm not aware of it.

Don
MigrationUser 1  Sunday, November 09, 2003 3:10 PM
there are a number of ways this could be achieved, architecturally speaking

1. I f you happen to have references to all the windows instants, then set the WindowState property.

2. By creating a base class for al your windows, create a global event which is hookd by this base class, and implementing Me.WindowState =  FormWindowState.Minimized , in the event handler
MigrationUser 1  Sunday, November 09, 2003 8:30 PM

You can use google to search for other answers

Custom Search

More Threads

• Form doesn't respond to mouse click while looping in background.
• Write to a specific place in a text file
• How to fix these font size and style problems?
• TreeView - Trouble with check / uncheck - Works on XP, not on Vista
• string downloader
• public class
• namespace nightmares
• Add Autogenerated Serial Number in Datagrid
• Mouse events and focus on a PictureBox
• User control backgroundimage fit to parent form