I am trying to create a media player with a playlist... I have all the code to add the media and the play but I am having problems with the double click. I have found code in another project but I think I am missing something
' If any item is dbl clicked in listview, similar techniques as in listbox are implemented to show that
' the song really originated from the listview, and play the song
' this identification helps in playing the next song (if playlist)
MDIParent1.lblMusic.Tag = ""
MDIParent1.lblMusic.Tag = ListView1.FocusedItem.SubItems(4).Text
If flag = 0 Then
flag = 1
Else
flag = 0
End If
MDIParent1.lblMusic.Text = ListView1.FocusedItem.Index
MDIParent1.lblMusic.Text = flag
If CheckBox2.Checked = True Then
ListView1.ListViewItemSorter = New ListViewComparer(5, SortOrder.Descending)
ListView1.Sort()
End If