Occurs when ArcPad receives a WM_POWERBROADCAST message from the operating system.
Use this event to write code that performs any desired power management action when an OnPower event occurs. When this event occurs, the Parameters(0) property of the ThisEvent object contains the power management event that was broadcast by the operating system. The following power management requests can be intercepted and denied by setting the Result property of the ThisEvent object to False:
Value | Meaning |
---|---|
0 | Request for permission to suspend. |
1 | Request for permission to stand by. |
For example, to deny permission to suspend the device in an OnPower event handler:
If ThisEvent.Parameters(0) = 0 Then
ThisEvent.Result = False
End If