Visual Basic Windows Media Player Play
Nov 26, 2007 Add a Windows Media Player control to the Application. Start Visual Studio. NET or Visual Studio 2005. On the Tools menu, click Add/Remove Toolbox.
As we already know, Windows 8.1 from Microsoft is dedicated to deliver a bettor user sustain of computing to the Windows users. As of now, it has been quite a time.
- Feb 09, 2014 Embedding the Windows Media Player Control in a Visual Basic Using the Windows Media Player Control with Microsoft Visual Studio Using the Windows Media.
- Feb 03, 2014 Does VLC media player have a Visual Basic. NET interface How to Embed The VLC media player in Window Form using Visual Basic. NET I want to add VLC media.
- The latest iteration of Windows Media Player adds a lot of useful bells and whistles, succeeding in many ways as a competitor to iTunes for Windows.
- Back to Top Setup and uninstall issues Rolling back to a previous version of the Player For information about removing Windows Media Player 10 and rolling back to the.
Find out how to get Windows Media Player 11 for Windows XP and Windows Vista and Windows Media Player 12 for Windows 7 and Windows 8.
Tags: VB.NET, VB 2008, VB 2010, VB 2012, VB 2013
This tutorial will show you how to make a media player program in visual basic. NET.
I am using Visual Basic 2008 Express Edition for this tutorial.
We will add one control that is not included in the toolbox:
On the Toolbox: right click the mouse and click on Choose Items.
A Window will appear: Click on COM Components.
Scroll down to Windows Media Player and check it then click ok.
In the toolbox, scroll down to the new control Windows Media Player and drag it to the form:
Resize it to fit the form like the picture below and make sure to leave a space between the icon and Windows Media Player:
Change some properties of the Windows Media Player. Right click on it and then click on properties. On the properties window, change the Anchor property to Top, Bottom, Left, Right.
That property will make Windows Media Player stretches to the whole window when the form size maximizes.
Add a button to the form and change it s text property to Song :
Add OpenFileDialog to the form:
Right click on OpenFileDialog1 in the gray area and click on properties. Change it s Filter property to Music File. mp3
Add the Song Button Click Event:
Private Sub Button1_Click ByVal sender As System.Object, ByVal e As System.EventArgs Handles Button1.Click
OpenFileDialog1.ShowDialog
AxWindowsMediaPlayer1.URL OpenFileDialog1.FileName
End Sub
When you play the program, click on Song button and that should show you a Open File Dialog to choose a song. Make sure that the song is in mp3 format.
Share This.