By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,943 Members | 1,921 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,943 IT Pros & Developers. It's quick & easy.

docking and undocking forms in c#

P: 31

I have an issue concerning WinForms in C#. My app uses dockable forms inside a panel. The trick is to set a form's TopLevel property to false and add it to the panel's collection with panel.controls.add(myFrm). I also implemented the functionality that undocks the form from the panel on doubleclick. The undocking is done like this:

It all works fine untill i want to make this form an MDI child, which cannot be a toplevel form. If I didn't use the toplevel trick, after removing the form from a panel, it wouldn't show in any way (although remaining activated in memory)?!

Is there a way to do this? Am I missing some little quirk?


Apr 25 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.