Access button on taskpane

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

Access button on taskpane
Ben Van Mulders

Posts: 27
Joined: 2007-03-14
Hi all,

In order to make a custom taskpane, you need to use a usercontrol.
But i've got a button on that user control, and when i click it, i'd like to add some text to my word document.
But i'm not getting it to work :(

Any thoughts?
Posted 19 Mar, 2007 08:07:28 Top
Sergey Grischenko

Add-in Express team

Posts: 7235
Joined: 2004-07-05
Hi Ben.

You can use the following code to get an instance of your control:

UserControl myControl = this.TaskPanes[<pane index>][<active window>].Control as UserControl;

P.S. Note that we take up your forum requests in the order we receive them. Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found
Posted 19 Mar, 2007 09:32:18 Top
Ben Van Mulders

Posts: 27
Joined: 2007-03-14
Thnx Sergey :D
Posted 19 Mar, 2007 09:33:58 Top