I duplicated my issue in one of your samples. Please take a look at the attached sample to confirm if I''m doing something incorrectly.
(vs 2005)
After you launch the app, click the button to show Robbe''s control. It launches a user control with a toolstrip with a close button and a command button that says close. both call
Program.MDIDockingManager.SetDockVisibility(this, false);
The command button closes the control properly. The toolstrip button causes the app to crash with a warning about FloatForm and it disposing.
Interestingly enough, if you were to dock the user control and then make it float again prior to clicking the toolstrip close button, it won''t crash.
I''m hoping I''m missing something and would really appreciate your help.
Thanks, Robbe
DockingWindowBug_Robbe.zip