Enabling and disabling controls

The EnableControl and DisableControl methods use one control, such as a check box, to enable or disable another one. The parameter for each method is the ID of the control to be enabled or disabled.

For example, each edit box in the Address Bulk Update form has an associated check box that enables the edit box when it is selected. You can use these check boxes to select the fields that are to be updated. To add additional bulk update fields, they must also have check boxes. If an edit box’s ID is ebStNum, its associated check box would have EnableControl(ebStNum) as its SelectRuleId, and DisableControl(ebStNum) as its DeselectRuleId.