I've created a toolbox window where I host a usercontrol. How to I set
the
toolbox window programmatically to be a Tabbed Page?
Dim programmableObject As Object
Dim guidstr As String = "{439bc5e4-6ec1-491f-adc9-fffe36776c2e}"
Dim windows2 As EnvDTE80.Windows2
Dim asm As System.Reflection.Assembly
asm = System.Reflection.Assembly.GetExecutingAssembly()
windows2 = CType(_applicationObject.Windows, EnvDTE80.Windows2)
_windowToolWindow =
windows2.CreateToolWindow2(_addInInstance, asm.Location,
"Addin.ToolWindowControl1", "Visual Basic .NET Tool window", guidstr,
programmableObject)
_windowToolWindow.Visible = True
Peter Macej - 24 Sep 2007 17:23 GMT
Play with IsFloating and Linkable properties. From my memory, add
following lines at the end:
_windowToolWindow.IsFloating = False
_windowToolWindow.Linkable = False

Signature
Peter Macej
Helixoft - http://www.helixoft.com
VSdocman - Commenter and generator of class documentation for C#, VB
.NET and ASP .NET code
Joh - 24 Sep 2007 18:45 GMT
> Play with IsFloating and Linkable properties. From my memory, add
> following lines at the end:
[quoted text clipped - 7 lines]
> VSdocman - Commenter and generator of class documentation for C#, VB
> .NET and ASP .NET code
It worked! Thanks!