Multiple forms in view at the same time

pizzaboy

Well-known member
Joined
Jan 5, 2008
Messages
57
Programming Experience
1-3
I have 2 forms - the first acts as a information display whilst the other acts like a control panel.

I'd like both forms to be in view at the same time when either is selected (by clicking on it or by selecting it from the Taskbar. How do I achieve this?

Any help would be greatly appreciated.

Thanks.
 
Add the controlForm to the mainForms OwnedForms collection with AddOwnedForm method, it will act as a toolbox; display/hide/close when main form does. You should also set controlForm ShowInTaskbar to False, and usually also set its FormBorderStyle to Fixed-/SizableToolWindow. Example mainForm code:
VB.NET:
Me.AddOwnedForm(controlForm)
controlForm.Show()
 
Back
Top