Catch Outlook Form and Form Control Events in C++

  • Thread starter Thread starter Nauman Khan
  • Start date Start date
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
 
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
 
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
 
Back
Top