Yep, just call ((EnvDTE80.Windows2)DTE.Windows).CreateToolWindow2(...), and supply the location of a .NET user control that implements your new window. You can then set the properties on the returned Window object to make the window appear as a tab, like the current start page.
Maybe I wasn't clear enought. It is easy with an add-ins to display a WinForm or a MessageBox, but what I would like is to create a WinForm that is a child windows of Visual Studio 2005, like the Start Page, the Code Editor, the Class Diagram Designer, etc.
How can I create such form, if it is possible If not, Is it possible to acheive that otherwise
-- Best regards, Carlos J. Quintero MZ-Tools: Productivity add-ins for Visual Studio You can code, design and document much faster: http://www.mztools.com
Visual Studio 2005 Add-ins
daniel 01
OK, now that I have the tool window displayed properly. Which property do I need to change for the tool bar the be displayed as a tab page
I try to set IsFloating to false, but that dosn't work.
Thanks.
Willgart
Yep, just call ((EnvDTE80.Windows2)DTE.Windows).CreateToolWindow2(...), and supply the location of a .NET user control that implements your new window. You can then set the properties on the returned Window object to make the window appear as a tab, like the current start page.
Craig
Chibuzo
Set IsFloating to false and Linkable to true.
Craig
Paula D
Maybe I wasn't clear enought. It is easy with an add-ins to display a WinForm or a MessageBox, but what I would like is to create a WinForm that is a child windows of Visual Studio 2005, like the Start Page, the Code Editor, the Class Diagram Designer, etc.
How can I create such form, if it is possible If not, Is it possible to acheive that otherwise
Thanks.
thompson16
Hi Craig,
I suppose that you meant "...Linkable to false".
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com