1) Add the control to the Toolbox by right clicking the Toolbox, selecting "Choose Items...", picking the COM Components tab, and checking the box for the Windows Media Player control.
2) Drag/drop the Windows Media Control onto your form.
3) Play the file by setting the Url property on the player, e.g.,
mplayer.URL = c:\test.wmv
mplayer.Ctlcontrols.currentPosition = 2
mplayer.Ctlcontrols.play()
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment