SDI: declare a Variable for each form in a module so when any of the forms are minimized you can have it minimize all the other forms, and when you restore (bring it from the taskbar back to the screen) you can then have it bring up the other windows as well such as:
any form's LocationChanged event
Code:
If Me.WindowState = FormWindowState.Minimized Then MainWindow.WindowState = FormWindowState.Minimized
mainform's LocationChanged event
Code:
If Me.WindowState = FormWindowState.Minimized And blnCompairOpen = True Then CompairWindow.Visible = False
If Me.WindowState = FormWindowState.Normal And blnCompairOpen = True Then
CompairWindow.Visible = True
CompairWindow.WindowState = FormWindowState.Normal
End If
MDI: it's a windows standard that's included with all microsoft programming languages to have all child windows cascade as they're opened. there's no way around it that i know of
note: the code posted above was taken straight out of a program i've written and is only their for logic, not actual use
Bookmarks