How to validate a Custom Property Page

J

Jack Zhang

Hi All,

I have added a property page to the Options Dialog Box as the example of Ken
Slovak's book, everything is working fine, Now I need to validate the inputs
when user click apply, if the data is valid then the page is closed,
otherwise the property page is keep in the focus.


thank you
 
K

Ken Slovak - [MVP - Outlook]

You receive the identical event when the user clicks Apply or OK. You have
no way to know which was clicked unless you hook to the Windows message pump
and figure it out that way. Whether or not the Tools, Options dialog closes
is up to Outlook, it's not under your control at all.
 

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