Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: How to validate a Custom Property Page

Geek News

How to validate a Custom Property Page
Jack Zhang 2/9/2006 7:01:27 PM
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
Re: How to validate a Custom Property Page
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 2/9/2006 7:22:51 PM
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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Jack Zhang" <JackZhang[ at ]discussions.microsoft.com> wrote in message
news:09C0BDCF-6CF0-4FD5-973D-D73D1EE95398[ at ]microsoft.com...
[Quoted Text]
> 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

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net