No. That dialog opening event isn't exposed anywhere. You'd have to use
Win32 API calls and callbacks to handle the dialog window opening and send
it a WM_CLOSE message, then you'd have to provide your own dialog in its
place.
You could handle the PropertyChange() event on the item to trap when a
selection is made from the To dialog, but that would be after the fact.
You don't say what version of Outlook you're working with (always do that),
but the Outlook 2007 object model has a NameSpace method
GetSelectNamesDialog() that is the To, etc. dialog. That can be customized
and set up as you like, but to know when To was clicked you'd still need
what I said in the first paragraph of my answer. There's nothing equivalent
in the earlier Outlook object models. although CDO 1.21 does provide a
Session.AddressBook() function that's roughly equivalent to the Outlook 2007
GetSelectNamesDialog() method.
Please do not multipost.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"Zengfu Xu" wrote in message
news

Hi,
I want to override the 'To' button click event in Outlook so that user can
select
a right contact from the list of contact in the organisation other than
the
contacts stored in Outlook. Can any one tell me if we can override the
'To'
button click event
using VB so that it would do what we want? If so then how?
Many thnaks!
Zengfu Xu
--
Software Developer
Office Automation