property Button.State as StateEnum
Specifies the control's state.

TypeDescription
StateEnum A StateEnum expression that indicates the button's state.
Use the State property to specify the button's state. Use the Mode property to change the button's way to handle the State property. For instance, if the Mode property is exCustom you can control what state being displayed when user clicks the button. The control fires Click event when user clicks a button. The control fires the StateChange event when the State property is changed. Use the Enabled property to disable the button. Use the Caption property to assign a caption to your button. Use the Image property to assign an image to your button.