VB.NET Technology

VB.Net Projects

VB.Net Project 1

Window Media Player
Previous Home Next
adplus-dvertising

You will not find the window media player control on toolbox list, so you have to add this control on rightclick on tool box and select option choose item as shown in below picture.

After this you will get another window for choosing toolbox item go to COM component panel and check window media player item and then click ok button. This control will add on your Visual Studio Framework toolbox list.

Now you can drag and drop window media player control from toolbox list.

Code for playing a song on window media player.

Private Sub Form1_Load(ByVal sender As System.Object, 
	ByVal e As System.EventArgs) Handles MyBase.Load
        axWindowsMediaPlayer1.URL = "D:\Documents and Settings\R4R\
		My Documents\Downloads\aakrosh02(www.songs.pk).mp3"

End Sub
Previous Home Next