Dock the form with another form panel

Can I attach form1 to a panel contained in another form2? I am running form1 with ShowDialog from the form2 event.

+1
source share
3 answers

Not with ShowDialog(or even Show), no. A form that has already been displayed as a top-level form cannot be added later as a subcontrol of any other control. You can try to save the form in a specific set of screen restrictions by observing the event LocationChanged, but the screen will appear jerky.

+1
source

form1 UserControl. UserControl form1 (, , ), UserControl form2, .

+1

Consider using the FULL FREE docking library to develop the Visual Studio.Net applications provided by this link. Believe me, this is commercial quality and free code!

+1
source

All Articles