Exposing a custom ADXOlForm event

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

Exposing a custom ADXOlForm event
 
BR Diamond




Posts: 23
Joined: 2007-04-18

AddinExpress automatically declares any ADXOlForms "WithEvents" in the main addin class module. I want to raise a my own event in a ADXOlForm class, and I want to capture/process this event in the main addin module.

I thought I could declare the event within the ADXOlForm code using
Public Event MyEventNameHere()

Then using
RaiseEvent MyEventNameHere()
I was hoping this would fire an event I could capture in the main addin class module.

Unfortunately, the above doesn't seem to work and the only event exposed by the ADXOlForm is the Disposed event, which is there by default.

Question is:
How can I create a custom event in a ADXOlForm and expose it to the main Addin module?

Thanks

BRD

VB.Net Express 2005

Posted 24 Apr, 2007 19:49:05 Top
Fedor Shihantsov


Guest


Hi BRD,

See example: http://www.add-in-express.com/projects/adx-x-ol-3-vb-custom_form_event.zip

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 25 Apr, 2007 05:53:58 Top
BR Diamond




Posts: 23
Joined: 2007-04-18

Many thanks Fedor. Again very informative.

I wonder, could you tweak that example project to make the controls on the ADXOlForm appear in xp style? (That's the next thing I'm struggling with...)

Thanks

BRD


Posted 26 Apr, 2007 07:57:50 Top
Fedor Shihantsov


Guest


You can use the outlook.exe.manifest file.
See the following topic: http://www.add-in-express.com/forum/read.php?FID=5&TID=651&MID=3109&phrase_id=440030
Posted 26 Apr, 2007 10:16:50 Top
BR Diamond




Posts: 23
Joined: 2007-04-18

Thanks Fedor.
outlook.exe.manifest works fine
but I guess this is going to affect the display of all other installed addins - not just my addin... is that right?


Posted 27 Apr, 2007 22:52:28 Top
Fedor Shihantsov


Guest


Yes, you are right.
Posted 30 Apr, 2007 05:29:27 Top
BR Diamond




Posts: 23
Joined: 2007-04-18

Thanks

Is there another way that only affects my addin? It would be better if my addin didn't alter general application settings

regards
Posted 30 Apr, 2007 18:30:21 Top
Fedor Shihantsov


Guest


Use the EnableVisualStyles method by the following way:

public AddinModule()
{
Application.EnableVisualStyles();
InitializeComponent();
}

Posted 02 May, 2007 05:49:03 Top