![]() |
![]() |
![]() |
Sprite.Lost Event |
Language: |
Occurs when an object is lost, normally immediately prior to a device reset.
Visual Basic .NET Public Event Lost As EventHandler C# public event EventHandler Lost; Managed C++ public: __event EventHandler Lost; JScript .NET In JScript .NET, you can use events, but you cannot define your own.
To add an event handler that listens for a Sprite.Lost event, use the following C# code.
[C#]
sprite.Lost += new System.EventHandler(this.LostEventHandler);
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center