View Single Post
  #4  
Old March 3rd 07, 02:06 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Button to custom form

Again, a button on a form fires a Click event. See http://www.outlookcode.com/d/propsyntax.htm#unbound

It's not clear what you have in mind to present a specific list of contacts for selection, given that Outlook doesn't have any thing built in for that. Some forms developers use a combo box on their forms.

--
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 news
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.


"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