Taskpane VB.Addin Call Sub in Usercontrol

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

SolidworksApi macros