Analog of "transient" property for MSVSIP.Helper.ProvideToolWindowAttribute in VS2003

Hi All,

I have a VSPackage in both VS2005 and VS2003. In VS2005 there is

[ProvideToolWindow(typeof(MyWindow), PositionX = 200, PositionY = 200, Width = 150, Height = 450, Transient = false)]

attribute and Transient flag indicates whether the tool window should not be reopened when the IDE restarts.

So, I want to do the same in VS2003 with my package. But in

MSVSIP.Helper.ProvideToolWindowAttribute there is no such flag.

Thank you




Answer this question

Analog of "transient" property for MSVSIP.Helper.ProvideToolWindowAttribute in VS2003

  • nutbuilder

    Unfortunately you would have to add the necessary registry keys yourself, e.g. during setup of your vspackage.

    You should search for "registering unmanaged toolwindow providers" which describes the registry keys needed. This is a partial copy of the docs in that topic

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\<version number>\ToolWindows\{f0e1e9a1-9860-484d-ad5d-367d79aabf55}]
    @="{01069cdd-95ce-4620-ac21-ddff6c57f012}"
    "Name"="Microsoft.Samples.VisualStudio.IDE.ToolWindow.DynamicWindowPane"
    "Float"="250, 250, 410, 430"
    "DontForceCreate"=dword:00000001

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0Exp\ToolWindows\{f0e1e9a1-9860-484d-ad5d-367d79aabf55}\Visibility]
    "{f1536ef8-92ec-443c-9ed7-fdadf150da82}"=dword:00000000

    In the first key in the example above, version number is the version of Visual Studio, such as 7.1 or 8.0, the subkey {f0e1e9a1-9860-484d-ad5d-367d79aabf55} is the GUID of the tool window pane (DynamicWindowPane), and the default value {01069cdd-95ce-4620-ac21-ddff6c57f012} is the GUID of the VSPackage providing the tool window. For an explanation of the Float and DontForceCreate subkeys, see Tool Window Display Configuration.

    /Ole P


  • adisciullo

    Thank you for your reply, but wile you answered I found that way and use it. It works!

  • Analog of "transient" property for MSVSIP.Helper.ProvideToolWindowAttribute in VS2003