A version of this page is also available for
This property specifies the size of the image display window. This property is read/write.
Compatibility: Windows Media Player
MediaPlayer.DisplaySize [ = lSize ]
Long value specifying the size of the image display window. The following table shows the possible values.
Value Visual Basic constant Description
Same size as the source image.
Width and height are one-half of the source image dimensions, resulting in an image that is one-fourth the original size.
Double the size of the source image.
Size of the entire screen.
Size specified at design time.
One-sixteenth the size of the screen.
One-quarter the size of the screen.
Half the size of the screen.
This property can only be set if the value of the AllowChangeDisplaySize property is true.
If the value of the AutoSize property is true, Windows Media Player control automatically changes its size to accommodate the video image at the size specified by the DisplaySize property. Otherwise, the Windows Media Player does not resize, and the image is centered in the video display panel.
If AutoSize is true and the DisplaySize property is set to 4 (mpFitToSize), the video image displays at the default size.
|Windows Embedded CE||Windows CE 3.0 and later|