2 Replies Latest reply on Feb 15, 2016 8:37 AM by roberto gennari

    Taskpane VB.Addin Call Sub in Usercontrol

    roberto gennari


      I wrote a VBA.Add In containing a Task Pane, I'd like to know how I could do to call a Sub contained in a Taskpane code, exsample:

      in my main SwAddin.vb i write this code create the Taskpane with Usercontrol



      DirectCast(mTaskpaneView.AddControl(SWTaskpaneHost.SWTASKPANE_PROGID, ""), SWTaskpaneHost)

      in a SolidWorks Event I want to call


      Sub AddItem

      'Here my code

      end sub

      contained in my SWTaskpaneHost


      Is it possible?