I keep getting problems with listview controls sometimes it runs fine sometimes it dont, the line ive highlighted below in yellow is the line that sometimes causes the exception, hopefully someone could explain.
Public
Sub loadplayer1() If Mainform.player1.playState = WMPLib.WMPPlayState.wmppsPlaying ThenMsgBox(
"Player Currently Active", MsgBoxStyle.Information) ElseIf Mainform.Playlist1.Items.Count > 0 ThenMainform.player1.URL = Mainform.Playlist1.Items(0).SubItems(2).Text
Mainform.P1tracklabel.Text = (Mainform.player1.currentMedia.name)
Mainform.P1TotalLabel.Text = (Mainform.Playlist1.Items(0).SubItems(1).Text)
Mainform.P1Progressbar.Style = ProgressBarStyle.Blocks
Mainform.P1Progressbar.Value = 0
Mainform.Playlist1.Items.Remove(Mainform.Playlist1.Items(0))
End If End Sub