Button to custom form

U

Uncle Vito

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?
 
S

Sue Mosher [MVP-Outlook]

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

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
U

Uncle Vito

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

Sue Mosher [MVP-Outlook]

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

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers


Uncle Vito said:
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.
 

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