{help}mp3 player
how would i make a mp3 player
Ow come on...There is something called Google. You can even find ~20 youtube tutorial about that <.<
Furthermore, the solution was already posted above...
I need to make a list box and when i click one of the listbox items witch will be a song i want it to play im thinking about if the list box item is click then the song will start help?
Will the listbox contain the actual location of each song or just the song name?
this not real code but example if listbox item.clicked then play location of song here
Listbo*****lectedIndexChanged Event
AxWindowsMediaPlayer1.Url = listbox1.selecteditems(0).text
Or .Selecteditem....idk
Either save the filepath in the .tag of the item or io.path.getfullpath(listbox1.selecteditem)
Well seeing as you're having the name, you might want to do a save setting when you add it to the listbox.
i.e
[php]
Dim OFD As New OpenFileDialog
If OFD.ShowDialog = Windows.Forms.DialogResult.OK then
Dim lio1 As Integer = (OFD.FileName.LastIndexOf("\") + 1)
Dim lio2 As Integer = (OFD.FileName.LastIndexOf(".")
Dim finalName As String = OFD.FileName.Substring(lio1, (lio2 - lio1))
ListBox1.Items.Add(finalName)
SaveSetting("MyMedia", "Songs", finalName, OFD.FileName)
End If
[/php]
Then add this to your ListBox1_SelectedIndexChanged
[php]
AxWindowsMediaPlayer1.URL = GetSetting("MyMedia", "Songs", ListBox1.SelectedItem)
AxWindowsMediaPlayer1.Ctlontrols.Play()
[/php]
Yeah...