Docking toolwindows to user control

Is there any way that I could dock a VS toolwindow, or code editor, etc, to a UserControl derived class in Visual studio   I want to open an HTML file in a window using EnvDTE._DTE.ItemOperations.OpenFile, but I don't want users to be able to dock it just anywhere, I want to open it up and display it within the client area of my user control. 



Answer this question

Docking toolwindows to user control

  • Michael Wheeler

     Nick752008 wrote:
    I would however like the facilities the HTML editor in visual studio has, and I do not want to use cumbersome third party HTML controls to do the editing.


    It is not possible to host the Visual Studio HTML editor like an ActiveX control.

  • kaushik saha

     Nick752008 wrote:

    Is there any way that I could dock a VS toolwindow, or code editor, etc, to a UserControl derived class in Visual studio   I want to open an HTML file in a window using EnvDTE._DTE.ItemOperations.OpenFile, but I don't want users to be able to dock it just anywhere, I want to open it up and display it within the client area of my user control. 



    What you are describing sounds more like 'hosting' then 'docking'.  Visual Studio Tool Windows can be toggled between floating and dockable, and when dockable, they can be docked at any Visual Studio docking point.  This ensures that the user can always customize the layout as they please.  A user control is not a Visual Studio docking point.

    For what you are trying to do, I would suggest hosting IE in your user control.

  • Jamie Plenderleith

    Yes, hosting rather than docking is what I meant.  Thanks for the suggestion about hosting IE.  I would however like the facilities the HTML editor in visual studio has, and I do not want to use cumbersome third party HTML controls to do the editing.

    Thanks,
    Nick

  • Docking toolwindows to user control