Visual Basic .NET Language

Using axWindowsMediaPlayer in VB.Net

Introduction#

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!

Then you can use axWindowsMediaPlayer :) Enjoy yourself!

Play a Multimedia File

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

This code will play Avatar in the axWindowsMediaPlayer.


This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow