![]() |
![]() |
![]() |
Device.DeviceReset Event |
Language: |
Occurs after a device is reset, allowing an application to re-create all Pool.Default resources.
Visual Basic .NET Public Event DeviceReset As EventHandler C# public event EventHandler DeviceReset; Managed C++ public: __event EventHandler DeviceReset; JScript .NET In JScript .NET, you can use events, but you cannot define your own.
To add an event handler that listens for a Device.DeviceReset event, use the following C# code.
[C#]
device.DeviceReset += new System.EventHandler(this.DeviceResetEventHandler);
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center