How to remove ToolWindow from DockManager

Docking/MDI for Windows Forms Forum

Posted 12 years ago by Michael Janulaitis - SpectorSoft
Avatar
I have build 2.0.0.109 and am trying to call DockManager.ToolWindows.Remove but the function does not exist. How do I remove a ToolWindow from the DockManager?

Comments (3)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Calling toolWindow.Dispose(true) will do that.


Actipro Software Support

Posted 12 years ago by Michael Janulaitis - SpectorSoft
Avatar
There is no Dispose function that is overloaded with a bool. If I call ToolWindow.Dispose() from within DockManager_WindowClosing then later attempting to search for the previous toolwindow I am able to still see the toolwindow int he collection which leads to a fatal error when activated.
Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Michael,

Sorry, the public Dispose method without parameters should be calling the protected Dispose(true) method.

You might need to make a new simple sample project that shows the issue and email that to our support address so that we can debug what is happening. Please rename the .zip file extension so it doesn't get spam blocked.


Actipro Software Support

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.