Daniel Lutz
Guest
|
Hello support,
is there any way to create the control for taskpane at startup instead of using ControlProgId? The context of the question is that ControlProgId is limited because the C++ call under the hood to create the control accept only controls from the same library like the addinmodule. So what i want to do is loading the usercontrol from a different library.
HINT
I know i can create a control at same addin assembly and subscribe the BeforeTaskPaneCreate and set there the user control from another library as subcontrol but this way needs everytime a control in the addin module assembly because the event is only rised if the ControlProgId is set.
Best regards
Daniel |
|
Andrei Smolin
Add-in Express team
Posts: 18793
Joined: 2006-05-11
|
Hello Daniel,
The ADXBeforeTaskPaneInstanceCreate event provides the ADXBeforeTaskPaneInstanceCreateEventArgs.TaskPaneClassType parameter. You use it to supply Add-in Express with the System.Type object pointing to the pane of your choice.
Regards from Poland (CET),
Andrei Smolin
Add-in Express Team Leader |
|