View Single Post
  #3  
Old March 2nd 07, 11:06 PM posted to microsoft.public.outlook.program_forms
Uncle Vito
external usenet poster
 
Posts: 4
Default Button to custom form

Yes the form is for internal us only. Pardon the misuse of the terminology.
What I am after is to catch the button click and present the list of contacts
for selection, then pull some data out of the contact and populate a couple
of user properties on the form. I was going to populate a select list with
the contacts but the contact list could be rather large. I am open to
suggestion if there is a better way.

Anyway, can you elaborate on how to catch the click of a button control
added to a custom form? I guess it would be similar to the "To:" and "CC:"
buttons on the inspector for the mail item.

--
Uncle Vito


"Sue Mosher [MVP-Outlook]" wrote:

All the button can do is fire a Click event.

There is no such thing as "an inspector for my contact list" within the OUtlook programming model. Inspector refers to the window that displays an individual item.

I hope you're using this custom form only for internal use. It's not going to make any non-Outlook external recipients very happy.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Uncle Vito" wrote in message ...
Using tools Forms Design Form I created a custom form which contains some
new user properties. This new form and its contents is defined by a new
message class IPM.note.mymessageclass.

I want to add a button to the form that would allow me to activate an
inspector for my contact list, allow the user to accept a contact which then
returns to the original form and populate another EDIT field with the FULL
NAME of the contact.

Hence my questions:

What do I have to do in order to catch the click of the button. Does
Item.CustomPropertyChange come into play here?

--
Uncle Vito


Ads