|   |   |   | 
| Device.DeviceResizing Event | Language: | 
Occurs when a device is resizing, allowing the application to cancel the default handling of the resize.
Visual Basic Public Event DeviceResizing As CancelEventHandler C# public event CancelEventHandler DeviceResizing; C++ public: 
event CancelEventHandler^ DeviceResizing;JScript In JScript, you can use events, but you cannot define your own. 
To add an event handler that listens for a Device.DeviceResizing event, use the following C# code.
[C#]
device.DeviceResizing += new System.CancelEventHandler(this.DeviceResizingEventHandler);
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