Catch Outlook Form and Form Control Events in C++

N

Nauman Khan

Hi,

I have designed a custom form, which has Edit boxes, Combos and Push Buttons etc. Is it possible to catch events like

Change Events for Edit Boxes
Change Event for Combo Box, Getting Selection and Setting Selection
Click Events for PUSH buttons on the Outlook Form.


Please HElp.
Regards
Nauman
 
S

Sue Mosher [MVP-Outlook]

No, control events are available only to form code. You can, however,
capture the PropertyChange and CustomPropertyChange events at the item
level.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Hi,

I have designed a custom form, which has Edit boxes, Combos and Push Buttons
etc. Is it possible to catch events like

Change Events for Edit Boxes
Change Event for Combo Box, Getting Selection and Setting Selection
Click Events for PUSH buttons on the Outlook Form.


Please HElp.
Regards
Nauman
 
M

Matt Fletcher

Actually, it is possible to catch Outlook form events in a C++ add-in, but
it's a bit involved.

What you can do is customise the form programmatically by #importing
fm20.dll and using the UserForm (for customisation) and FormEvents (for
events) interfaces.

Other than the effort (no visual form editor), and possible problems with
one-off forms (I only customise received mails so this doesn't bother me),
the main downsde to this approach is that Outlook will prompt the user of
the form to save changes every time they close the form. I've got around
this by hooking the save changes dialog and dismissing it (though this
leaves a nasty beep every time a customised mail is closed, but it's better
than nothing).

Sorry no sample code available.

HTH
Matt Fletcher
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top