Assembly: System.Windows.Forms (in system.windows.forms.dll)
/** @property */ public boolean get_Enabled () /** @property */ public void set_Enabled (boolean value)
Property Valuetrue if the element allows user input; otherwise, false.
For FORM elements such as text boxes and radio buttons, setting Enabled to false will prevent the user from using these form fields. For other elements, such as DIV or SPAN, setting Enabled to false will cause all text within the element to appear shaded; however, the text will still be selectable. To cancel selection, add an event handler for the unexposed onselectstart event using the AttachEventHandler method.
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.