Create control for TaskPane at startup

Add-in Express™ Support Service
That's what is more important than anything else

Create control for TaskPane at startup
 
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
Posted 21 Feb, 2022 08:58:06 Top
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
Posted 21 Feb, 2022 11:04:04 Top