prevent the IEBarmodule to be closed

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

prevent the IEBarmodule to be closed
 
thierry Haillot




Posts: 5
Joined: 2010-01-28
In my project, there is a ADXIEBarModule,

I want the IEBarModule to be always opened.
I want the user could not be able to close the IEBarModule.
How could I do this?

Or Is it possible to automatically activate the IEBarModule when IE is launched?

my fear is the user close the IEBarModule and doesn't know how to open it.

Thanks in advance.

Thierry Haillot
Posted 09 Feb, 2010 11:57:51 Top
Andrei Smolin


Add-in Express team


Posts: 18794
Joined: 2006-05-11
Hi Thierry,

thierry Haillot writes:
I want the IEBarModule to be always opened.


See the OnBeforeHide property of the IEBarModule.

thierry Haillot writes:
Or Is it possible to automatically activate the IEBarModule when IE is launched?


It would be possible to activate the IE bar automatically, if you create an IE add-on project and add a toolbar to it. In the current project, you are unable to activate the IE bar because there's no other code in your project besudes the code of the IE bar itself.


Andrei Smolin
Add-in Express Team Leader
Posted 09 Feb, 2010 14:27:27 Top
thierry Haillot




Posts: 5
Joined: 2010-01-28
Thanks for your answer, Andrei.

It should be OnBeforeHideEx instead of OnBeforeHide?


{
this.OnBeforeHideEx += new ADXIEBeforeHide_EventHandler(this.cancelHide);
...
}

private void cancelHide(object sender, ADXIEBeforeHideEventArgs evt)
{
evt.Cancel = true;
}


this is ok for me.

Thierry
Posted 10 Feb, 2010 04:09:40 Top
Andrei Smolin


Add-in Express team


Posts: 18794
Joined: 2006-05-11
Hi Thierry,

OnBeforeHideEx, of course.



Andrei Smolin
Add-in Express Team Leader
Posted 10 Feb, 2010 04:43:14 Top