|
-
March 23rd, 2011, 08:39 AM
#4
Re: problem with music playlist
Do I have to import anything to use overwriteprompt?
My code has changed so that there is no longer a file saved to the computer.
Code:
Private Sub Add_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PLAdd.Click
OpenFileDialog2.ShowDialog()
Playlist.Items.Add(OpenFileDialog2.FileName)
End Sub
Private Sub Remove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PLRemove.Click
Playlist.Items.Remove(Playlist.SelectedItem)
End Sub
Private Sub PLSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PLSave.Click
Playlists.Items.Add(Playlist.Items)
End Sub
Private Sub PLLoad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PLLoad.Click
Playlist.Items.Add(Playlists.Items)
End Sub
Private Sub PLPlay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PLPlay.Click
If OpenFileDialog2.FileName = "" Then
Exit Sub
Else
Process.Start(Playlist.SelectedItem)
End If
End Sub
When I use this code to save a playlist to the second listbox as a single item that can be loaded as the original multiple items to the first listbox, all I get in the second listbox is the word, "(Collection)". Also, from this approach how could I allow the user to name their own playlist?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|