Adding Methods to the Control

When you are developing a control, you must often provide methods to perform actions in your control. For the GroupCheck control, you add a method that disables or enables the controls contained within the GroupBox control based on the checked state of the CheckBox control. The method is called from the setChecked method.

To add a method to a control

The next step is to add code to the constructor.