OL97: Bound Control Does Not Support Click Event (166853)
The information in this article applies to:
This article was previously published under Q166853 SYMPTOMS
In Microsoft Outlook 97 Visual Basic Scripting Edition (VBScript), bound
controls such as the ListBox, CheckBox or OptionButton do not support the
click event. When these controls are not bound however, the click event
does execute. Bound means that the control has a Value property assigned.
RESOLUTION
Click event behavior varies depending upon the control. CommandButton
controls, for example, can be bound to a mail field and will support the
Click event. This scenario is specifically designed to display the "Select
From" dialog so the user can select an email name from the address book. In
order to execute a click event for other controls, make sure the control
remains unbound.
If you need to bind a control to one of the item's fields, use either
the Item_PropertyChange() event or the Item_CustomPropertyChange() event
depending on whether the control is bound to a standard Outlook field or a
user-defined field.
For more information on working with the PropertyChange and
CustomPropertyChange events, please see the following articles in the
Microsoft Knowledge Base:
171246 OL97: Supported Outlook Forms Control Events
REFERENCES
For more information about creating solutions with Microsoft Outlook 97,
please see the following articles in the Microsoft Knowledge Base:
166368 OL97: How to Get Help Programming with Outlook
170783 OL97: Q&A: Questions about Customizing or Programming Outlook
Modification Type: | Major | Last Reviewed: | 6/23/2005 |
---|
Keywords: | kbcode kbinfo kbProgramming KB166853 |
---|
|