Using combobox selection to enable textbox

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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
 
Thanks Sue. I was trying to do this with Item.Userproperties instead of
Item.GetInspector.ModifiedFormPages

It works now.
 
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
 
Back
Top