Microsoft DirectX 9.0 SDK Update (October 2004)

Device.DeviceLost Event

Language:

Note: This documentation is preliminary and is subject to change.

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

Definition

Visual Basic .NET Public Event DeviceLost As EventHandler
C# public event EventHandler DeviceLost;
Managed C++ public: __event EventHandler DeviceLost;
JScript .NET In JScript .NET, 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);


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

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