add functionality to form button

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

add functionality to form button
T Rolle

Posts: 32
Joined: 2006-07-23

In Word, I have a command bar with a button which opens a form. the form contains a button which in turn will then execute a click event. I'm using (this.ThisApplication as ThisDocument).button1_click(sender, system.eventargs.empty) to execute a method directly from the command bar button but how do you access the this.thisapplication as ThisDocument from a form. The ADXModule extends addinexpress.vsto.adxwordmodule. so the question is how to access adxwordmodule from a form class. Thanks.
Posted 01 Feb, 2007 08:59:58 Top
Sergey Grischenko

Add-in Express team

Posts: 7233
Joined: 2004-07-05
Hi T.

You just need to create a new property of the ADXModule type in the form class and initialize it with the ADXModule instance after the form is created.

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 01 Feb, 2007 20:22:55 Top