How do you retrieve a handle to the parent IEModule from a toolbar?

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

How do you retrieve a handle to the parent IEModule from a toolbar?
 
SilverStr




Posts: 28
Joined: 2013-03-31
Hey guys,

If I want to call a public method in IEModule from my toolbar what is the right way to do this?

I thought I might be able to cast IEObj but that doesn't work throwing an exception of invalid cast. Makes sense... as I look closer its a WebControl.

So what is the right way?
Posted 05 Apr, 2013 10:12:14 Top
Andrei Smolin


Add-in Express team


Posts: 14106
Joined: 2006-05-11
Hello,

You need to cast the ADXIEToolbar.Module property to the actual type of your IE module and call the method.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 05 Apr, 2013 10:18:44 Top
SilverStr




Posts: 28
Joined: 2013-03-31
Sweet. Simple enough Thanks Andrei!
Posted 05 Apr, 2013 10:26:56 Top