MonitorPower, ScreenSave Events

Purpose

Occurs when a screensaver starts or monitor goes to low power.

Syntax

Sub Form_MonitorPower(lParam%, Cancel?)

Sub Form_ScreenSave(Cancel?)

Description

The ScreenSave(Cancel?) occurs when the screensaver is starting. Set Cancel? = True to prevent the start of the screensaver.

The MonitorPower(lParam%, Cancel?) occurs when the display is going to low-power. The lParam can have the following values:

1 means the display is going to low power.

2 means the display is being shut off.

Set Cancel? = True to prevent monitor power mode.

See Also

Form

{Created by Sjouke Hamstra; Last updated: 12/05/14 by James Gaite}