Re: Problem with mp3 player
It depends on which media player you are using. With Wmp.dll its
VB Code:
WindowsMediaPlayer1.URL = App.Path & "\Your.mp3"
This will load and play the file. ;)
I'm not sure your code will work because your only showing a FileListBox. You will need a DirListBox to find the path to this file.
Re: Problem with mp3 player
I use windows media 10
the error left but it still not play the song.It say ready i press the button to start and nothing happen
but i thank you very much for your help
p.s i copy-paste it
i have put and a drive list box and a directory
Re: Problem with mp3 player
why not use a common dialog control ?
go to the components then look for micrsoft common dialog control
name it cdl and put this code in the button to open the song
VB Code:
cdl.Filter = "Audio Files(*.mp3,*.wma,*.wav,*.midi)|*.mp3;*.wav;*.wma;*.midi
cdl.DialogTitle = "Open File"
cdl.ShowOpen
Me.WindowsMediaPlayer1.URL = (cdl.FileName)
Re: Problem with mp3 player
Re: Problem with mp3 player
Thats the simple way using a CommonDialog. I thought you needed to use a FilelistBox because you've shown one. :D