Using combobox selection to enable textbox

G

Guest

I would like to have certain textboxes on a custom form enabled ( enable
property set to True ) based on the selection made from a combobox.
Example:
If user selects "apples" from the dropdownlist, only the textboxes named
"apples1,apples2,apples3" are enabled. If they select "oranges", then only
the "oranges1,oranges2,oranges3" textboxes are enabled, and so on.
Any guidance would be appreciated.
 
S

Sue Mosher [MVP-Outlook]

In that case, you'll use either the PropertyChange or CustomPropertyChange
event, depending on whether it's a built-in or custom property. The section
on Unbound Controls on the page I suggested shows how to refer to a control
in code and work with its properties.

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

Guest

Thanks Sue. I was trying to do this with Item.Userproperties instead of
Item.GetInspector.ModifiedFormPages

It works now.
 
S

Sue Mosher [MVP-Outlook]

FYI, you should always use Item.UserProperties to read/set custom property
values, rather than going through any controls that might be bound to such
properties.

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