Events in IE not catched

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

Events in IE not catched
 
Ofear Hadad




Posts: 10
Joined: 2012-11-06
We are trying to catch several events from IE, but nothing works.
we are trying to know when the browser is minimized.

In IEmodule those line compile, but when the user manually changes the browser size for example nothing happens:

private void InitializeComponent()
{
this.OnTabCreated +=new EventHandler(IEModule_OnTabCreated);
this.OnBrowserResized += new AddinExpress.IE.ADXIEBrowserResized_EventHandler(IEModule_OnBrowserResized);


the following event registration in ToolBar class does not even compile.
we get below error:

private void InitializeComponent()
{
this.IEApp.OnVisible +=new IE.DWebBrowserEvents2_OnVisibleEventHandler(IEApp_OnVisible);


Error:

Error 3
Cannot register assembly
Exception has been thrown by the target of an invocation.
Posted 25 Nov, 2012 01:34:42 Top
Sergey Grischenko


Add-in Express team


Posts: 7202
Joined: 2004-07-05
Hi Ofear,

You can use OnFrameWindowActivate and OnResizeBorder events. The 'HandledocumentUICommands' property of the iemodule should be set to true.
Posted 26 Nov, 2012 04:39:52 Top
nsoft test




Posts: 10
Joined: 2012-11-06
Hi Sergey,

Thanks for the reply.

Unfortunately no go, it does nothing:


            this.HandleDocumentUICommands = true;
            this.OnResizeBorder += IEModule_OnResizeBorder;


Could it be that this IEModule is not active? How do I know if it's the one active?


Thanks!
Posted 26 Nov, 2012 07:21:30 Top
nsoft test




Posts: 10
Joined: 2012-11-06
Hi Sergey,

Do you have a direction for us? The development is stuck for a few days now due to this problem.

Thanks!
Posted 27 Nov, 2012 03:50:49 Top
Sergey Grischenko


Add-in Express team


Posts: 7202
Joined: 2004-07-05
Hi Ofear,

What version of Internet Explorer do you use? Do you see the add-on in the Manage add-ons dialog?
Please check if the 'Enable third-party browser extensions' option is check in IE.
Posted 27 Nov, 2012 08:13:40 Top
nsoft test




Posts: 10
Joined: 2012-11-06
Hi Sergey,

We are using IE9/10, and it's the same problem.
There is a toolbar and an Addon, and they are both showing in the toolbars and in the Manage Addons dialog.
Also the "Enable 3rd party" is on.

The addon works. The only thing which doesn't work is the above events.

How do I know if I'm using the correct IEModule / IEApp? And which of them should I use?
Posted 28 Nov, 2012 02:16:29 Top
Sergey Grischenko


Add-in Express team


Posts: 7202
Joined: 2004-07-05
Hi Ofear,

Please send me the problematic project. I will test it.
Posted 28 Nov, 2012 08:49:51 Top
nsoft test




Posts: 10
Joined: 2012-11-06
Hi Sergey,

Thanks alot for the help! I would love that you take a look at it.
How do I send it to you?

Thanks
Posted 29 Nov, 2012 03:03:06 Top
Sergey Grischenko


Add-in Express team


Posts: 7202
Joined: 2004-07-05
Hi Ofear,

You can find the support email in the readme.txt file of the product.
Posted 29 Nov, 2012 04:10:11 Top
Sergey Grischenko


Add-in Express team


Posts: 7202
Joined: 2004-07-05
Hi Ofear,

I checked the project. The source code contains properties which are incorrectly added (e.g. the 'HandleDocumentUICommands' property is the design time property and it doesn't work at the runtime). Please use the visual designer of the iemodule to change properties and event handlers.
Posted 29 Nov, 2012 08:33:36 Top