Device.DeviceResizing Event (Microsoft.DirectX.Direct3D)

Occurs when a device is resizing, allowing the application to cancel the default handling of the resize.

Definition

Visual Basic Public Event DeviceResizing As CancelEventHandlerLeave Site
C# public event CancelEventHandlerLeave Site DeviceResizing;
C++ public:
event CancelEventHandlerLeave SiteDeviceResizing;
JScript In JScript, you can use events, but you cannot define your own.

Remarks

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);

See Also