Tutorial by Examples

Right-click on the Toolbox, then click "Choose Items". Select the COM Components tab, and then check Windows Media Player. axWindowsMediaPlayer will be added to Toolbox. Select this checkbox to use axWindowsMediaPlayer Then you can use axWindowsMediaPlayer :)
AxWindowsMediaPlayer1.URL = "C:\My Files\Movies\Avatar.mp4" AxWindowsMediaPlayer1.Ctlcontrols.play() This code will play Avatar in the axWindowsMediaPlayer.

Page 1 of 1