|   |   |   | 
| RenderToSurface.Lost Event | Language: | 
Occurs when an object is lost, normally immediately prior to a device reset.
Visual Basic Public Event Lost As EventHandler C# public event EventHandler Lost; C++ public: 
event EventHandler^ Lost;JScript In JScript, you can use events, but you cannot define your own. 
To add an event handler that listens for a RenderToSurface.Lost event, use the following C# code.
[C#]
rts.Lost += new System.EventHandler(this.LostEventHandler);
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