AnsweredAssumed Answered

Taskpane VB.Addin Call Sub in Usercontrol

Question asked by roberto gennari on Feb 15, 2016
Latest reply on Feb 15, 2016 by roberto gennari

Hallo,

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?

 

Thanks

Roberto

 

Outcomes