Property Enabled
Enabled
Gets or sets a value indicating whether the control can respond to user interaction.
public override bool Enabled { get; set; }
Property Value
- bool
true
if the control can respond to user interaction; otherwise,false
. The default istrue
.
Remarks
With the Enabled property, you can enable or disable controls at run time. For example, you can disable controls that do not apply to the current state of the application. You can also disable a control to restrict its use. For example, a button can be disabled to prevent the user from clicking it.