![]() |
Controls Properties: Control's Availability |
|
Introduction |
|
For the user to use a control, it must allow operations on it. For example, if a control is supposed to receive text, the user can enter characters in it only if this is made possible. To make a control available to the user, the object must be enabled. The availability of an object is controlled by the Boolean Enabled property. By default, after adding a control to a form, it is enabled and its Enabled property in the Properties window is set to True. An enabled control displays its text or other characteristics in their normal settings. If you want to disable a control, set its Enabled property to False. In the following picture, a text box and a button are disabled: ![]() To programmatically find out whether a control is enabled or not, check its Enabled property. |
|
|
||
| Home | Copyright © 2008 FunctionX, Inc. | Home |
|
|
||