Saving property pages?

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

Saving property pages?
 
Jamie Begin




Posts: 1
Joined: 2006-03-14
I'm using Visual Studio 2005 and VB.Net. I've followed the instuctions in the Getting Started Guide on how to add a page to the Outlook Options menu. It works, except I can't figure out how or where to trap the event that fires when a user clicks "Ok" or "Cancel". If I were using a normal Win Forms project I would simply do:

frmDialog.ShowDialog()
If frmDialgo.DialogResult = DialogResult.OK Then
' Save the settings
End If

How do I do this using an Add-in Express project within Outlook? Thank you. :-)
Posted 14 Mar, 2006 23:51:15 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Jamie.

You can use the Apply and Dirty events of ADXOlPropertyPage Class to handle the "Ok" and "Apply" buttons in Outlook. Please look at the 'ADX Toys for Microsoft Outlook (.NET Edition, VB) example.
http://www.add-in-express.com/downloads/free-addins.php

Posted 15 Mar, 2006 08:22:22 Top