Device.DeviceLost Event (Microsoft.DirectX.Direct3D)
Occurs when a device is about to be lost (for example, immediately prior to a reset).
Visual Basic Public Event DeviceLost As EventHandler C# public event EventHandler DeviceLost;
C++ public:
event EventHandler^ DeviceLost;
JScript In JScript, you can use events, but you cannot define your own.
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);
Show:
