FileName (Compact 7)

3/12/2014

This property specifies the name of the clip to play. This property is read/write.

Compatibility: Windows Media Player

Syntax

MediaPlayer.FileName [ = "sName" ]

Parameters

  • sName
    String value specifying the name of the clip. The default is an empty string ("").

Remarks

If the value of the AutoStart property is true, file playback begins automatically whenever you set the FileName property.

If you set both AutoStart and FileName at design time, the Windows Media Player control begins playing the file when it is loaded.

Setting this property is an asynchronous operation.

See Also

Reference

Windows Media Player Properties
Open (Windows Media Player)
AutoStart