Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to programmatically link jpeg/jpg/bmp and audio/video files with AxWindowsMediaPlayer in vb.net
Posted
Comments
Sergey Alexandrovich Kryukov 20-Nov-11 18:20pm    
What is "link" here?
--SA

1 solution

The following code Play the Selected Song File
Just Take one OpenFileDialog Control and One Button Control.
On Button Write the following Code
VB
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
       If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
           AxWindowsMediaPlayer1.URL = OpenFileDialog1.FileName
       End If
   End Sub

When you click on Button the File Dialog Box opensafter selecting the Song File it automatically Paly in AxWindowsMediaPlayer.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900