Microsoft DirectX 9.0

MSVidCtl.DisplaySize

This topic applies to Windows XP only.

The DisplaySize property sets or retrieves the current display size.

Syntax

objMSVidCtl.DisplaySize As DisplaySizeList

Parameters

This property takes no parameters.

Error Codes

If the property fails, an error is raised and Err.Number is set to a value other than zero.

Return Values

Returns a DisplaySizeList constant.

Remarks

This property has no effect if the MSVidCtl.AutoSize property is False. If AutoSize is True, this property determines the Video Control's dimensions when it resizes itself.

This property is read/write. In Visual Basic, you can set this property at design time using the Properties dialog.

Example

' Set the display size to half-screen.
VideoControl1.AutoSize = True
VideoControl1.DisplaySize = dslHalfScreen

See Also