VSTA Add-In Issue

Latest post 09-19-2008 3:39 PM by Gary. 3 replies.
  • 09-01-2008 1:55 AM

    VSTA Add-In Issue

    Hi,

    I need to add a toobox window in VSTA V2 to show some additional data about the objects in my application.

    To use this thier is a function CreatetoolWindow2 in DTE.Windows method  for toolbox window creation. But, it expects expects a AddIn Type as parameter. Now, I do not see how I can add an Addin To VSTA using DTE.AddinIns.Add as it throws an exception 'Not implemented' since VSTA do not support Addins. Is there an alternate way to add an tool window besides doing a Form.Show, which will give me an undockable window?

    Regards   

    Digvijay
  • 09-03-2008 10:08 AM In reply to

    • Gary
    • Top 10 Contributor
    • Joined on 07-13-2006
    • Posts 320

    Re: VSTA Add-In Issue

    Yes, I can confirm that DTE.Addin is not supported in the VSTA IDE.

    I am looking further into this.

     

  • 09-06-2008 12:22 AM In reply to

    Re: VSTA Add-In Issue

    Thank's Gary for your concern.
    Digvijay
  • 09-19-2008 3:39 PM In reply to

    • Gary
    • Top 10 Contributor
    • Joined on 07-13-2006
    • Posts 320

    Re: VSTA Add-In Issue

    According to VSTA team, you can use CreateToolWindow2 with a null AddIn parameter and a valid ProgID.  This means that you must have a windows form registered as an ActiveX control, so that it can be loaded by its ProgID.

Page 1 of 1 (4 items) | RSS
Copyright Summit Software Company, 2008. All rights reserved.