Device.DeviceLost Event

Language:

Occurs when a device is about to be lost (for example, immediately prior to a reset).

Definition

Visual Basic Public Event DeviceLost As EventHandler
C# public event EventHandler DeviceLost;
C++ public:
event EventHandlerDeviceLost;
JScript In JScript, you can use events, but you cannot define your own.

Remarks

To add an event handler that listens for a Device.DeviceLost event, use the following C# code.

[C#]
device.DeviceLost += new System.EventHandler(this.DeviceLostEventHandler);


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center