windowsforms-117286-common-features-behaviors-indicator-behaviors.md
This article gathers behaviors that force their target controls to display various kinds of system information.
The clock behavior displays system date and/or time within the target control.
Supported controls
Behavior options
Offset - specifies the amount of hours, minutes and seconds that should be added to (subtracted from) the current system time. Negative offset values increase the displayed time, while positive offset values decrease it. Use this option to display time from time zones outside end-users’ local ones.
ShowMode - allows you to select whether or not both date and time values should be displayed. You can also select whether these two data portions should be arranged one below the other or side-by-side. Note that for digital gauge date and time values are always arranged in a single line.
DateOptions - exposes properties that store the fore color, font settings and format string for the displayed date portion.
TimeOptions - exposes properties that store the fore color, font settings and format string for the displayed time portion.
This behavior allows a target control to alert end-users if the specific system key (Caps Lock, Scroll Lock, Num Lock) is currently pressed.
Supported controls
Behavior options