Question

Programatically removing a ToolWindow

Posted 6 years ago by Avatar dmelinosky
I know the sample app shows how to programatically add a ToolWindow, but how do I do the reverse?

I remove the ToolWindow from the DockSites ToolWindows collection, but that doesn't seem to be enough.

Thanks,

Dave

Comments (2)

Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA
If you call ToolWindow.Destroy() it should remove it from the DockSite and from the UI. I think that is demoed in the sample as well via a Destroy button in one of the tool windows. Let us know if that doesn't do the trick.

Actipro Software Support
Posted 6 years ago by dmelinosky
Yup, I found that actually right after I posted ( isn't that always the way it happens )
Information The latest build of this product (2014.1 build 0602) was released 2 months ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.