I'm having difficulty managing instances of DocumentWindow and ToolWindow.
I have classes inheriting each type. I have a particular object I would like to use as a tabbed document which behaves as a tool window. The best example I can cite which makes use of this paradigm is the Object Explorer Details view in SQL Server Management Studio.
It is essentially a Form, in behavior, but it is docked in the SSMS UI document container. It is available on the View menu. I need to develop a control which behaves in precisely this manner.
What I cannot determine is whether, in the DockManager environment, this object should inherit from ToolWindow, or DocumentWindow. I have tried both but cannot figure out how to properly instantiate it and get it docked into the document container. A ToolWindow can be a document, so I'm sure that's a clue for me, but I haven't determined how to get the thing rigged up. Once it's docked, it should behave as an Object Explorer Details "document", in that it should not be user-dockable as a ToolWindow, should not Float, etc., etc. I'm sure this is another clue for me - my best guess is that this object should inherit from ToolWindow.
I have added an item to the View menu.
Can I get some help in VB please, demonstrating how to achieve the above?