Formatting List Box Control on a Custom Form

M

Maria Sevier

I have designed a custom form which contains 4 list
boxes. The list boxes are on the compose and the read
pages. They are read only on the read page. I have set
them to text fields to store their values and have a list
of values in each list box. When I publish the form and
test it I can select items (even multiple items) in the
list box. Once I move from one list box control to
another control the list box control loses the values that
I have chosen. I'm not sure what is happening. I have
looked through 4 books and none of them cover anything
like this. The microsoft knowledge base didn't really
have anything helpful either.

If anyone has any helpful ideas I would be greatly
appreciative.
 
S

Sue Mosher [MVP]

This is one of those really nasty quirks with Outlook forms. While you can bind a multi-select list box control to a Keywords data type field, you still get the ugly effect you describe. I've had best results using an unbound list box and setting the selected values in my Item_Open event handler and saving them in Item_Write. I keep meaning to do a sample form to demonstrate this but haven't had time to do a good one. I'll try to bump it up on the list.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
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