# Using axWindowsMediaPlayer in VB.Net

axWindowsMediaPlayer is the control for the playing multimedia files like videos and music.

# Adding the axWindowsMediaPlayer

  • 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 Select this checkbox! (opens new window)

Then you can use axWindowsMediaPlayer 😃 Enjoy yourself! (opens new window)

# Play a Multimedia File

AxWindowsMediaPlayer1.URL = "C:\My Files\Movies\Avatar.mp4"
AxWindowsMediaPlayer1.Ctlcontrols.play()

This code will play Avatar in the axWindowsMediaPlayer.