i just want to make a mp3 player, but i got problem at my mp3 path. this is my code:
Public Class Form1
Private Sub Import_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Import.Click
FBD.ShowDialog()
TextBox1.Text = FBD.SelectedPath
Dim folderInfo As New IO.DirectoryInfo(TextBox1.Text)
Dim arrFilesInFolder() As IO.FileInfo
Dim fileInFolder As IO.FileInfo
arrFilesInFolder = folderInfo.GetFiles("*.mp3")
For Each fileInFolder In arrFilesInFolder
playlist.Items.Add(fileInFolder.Name)
Next
End Sub
Private Sub Play_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Play.Click
AxWindowsMediaPlayer1.URL = playlist.SelectedItem
End Sub
my problem is on line AxWindowsMediaPlayer1.URL = playlist.SelectedItem because if you can see, my folder directory is in the textbox, but my mp3 name is in the playlis(listbox), so now i dont know how to combine this url.