Skip to content

ControlStates Enum

Indicates the state of a control.

C#
[Flags]
public enum ControlStates

Normal state.

C#
Normal = 0

The control is disabled.

C#
Disabled = 1

The control has focus.

C#
Focused = 2

The control is selected

C#
Clicked = 4

The mouse is over the control.

C#
MouseOver = 8

The left mouse button is down.

C#
MouseLeftButtonDown = 16

The Right mouse button is down.

C#
MouseRightButtonDown = 32

The control is selected

C#
Selected = 64