Select multiple items in combobox on the form

J

Jane

What should I do to be able to select multiple item in
combobox on the outlook form? The default setting is
select one item.
 
J

Jane

Thank you. It works. Here is another question related to
this one. I have two list boxes on the same form. I
select two items on the list box1, the selected items get
highlight color, I also need to select three items on list
boxe2. When the focus move to the second list box, the
highlight color for the selected items disappear in the
list box1. What should I do to keep the selected items
showing in list box1 when I click on another control?
-----Original Message-----
Use a list box instead of a combo box and on the Advanced
Properties dialog for the control, set its MultiSelect
property to 1 - Multi.
 
J

Jane

Sue,
Can you provide me some sample code for this?
Thanks.
-----Original Message-----
That's where is gets complicated, I'm afraid. For reasons
I'm not entirely clear on, the only way to maintain the
display of such selections is to go to an unbound list box
and use code both in the Item_Write event handler to save
the user's selections in some property and in the
Item_Open event handler to reload the list selections.
 
S

Sue Mosher [MVP-Outlook]

Actually, you may not have to write code for this: What kind of property did
you bind the list box to? If it's a text property, create a new keywords
property and use that property instead. The behavior I was referring to
occurs when you try to use a text property with a multi-select list box
instead of a text property.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
J

Jane

It works!!! Sue, Thank you so much.
-----Original Message-----
Actually, you may not have to write code for this: What kind of property did
you bind the list box to? If it's a text property, create a new keywords
property and use that property instead. The behavior I was referring to
occurs when you try to use a text property with a multi- select list box
instead of a text property.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers






.
 

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