Is it possible to dock a form1 to a panel contained in another form2?
I’m launching form1 with ShowDialog from a form2 event.
Is it possible to dock a form1 to a panel contained in another form2?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not with
ShowDialog(or evenShow), no. A form that has already been displayed as a top-level form cannot later be added as a subcontrol of any other control. You can try to keep the form within a particular set of screen bounds by monitoring theLocationChangedevent, but that will appear jerky on the screen.