Hi there.
My problem is that when i click play to resume a paused song it starts the song from the beginning.
I added an IF statement to the play button to say basically ...
IF PAUSED THEN PLAY (RESUME)
ELSE
PLAY FROM IMPORT LIST.
The problem with the IF statement, is that it says the pause command has no value.
For the life of me, i cannot figure out the IF statement. Please help
Public Class MP3Form
Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles importDiag.FileOk
For Each track As String In importDiag.FileNames
Playlist.Items.Add(track)
Next
End Sub
Private Sub btnimport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnimport.Click
importDiag.ShowDialog()
End Sub
Private Sub btnPlay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPlay.Click
If AxWindowsMediaPlayer1.Ctlcontrols.pause() = True Then
AxWindowsMediaPlayer1.Ctlcontrols.play()
Else
AxWindowsMediaPlayer1.URL = Playlist.SelectedItem
End If
End Sub
Private Sub btnStop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles stopbutton.Click
AxWindowsMediaPlayer1.Ctlcontrols.stop()
End Sub
Private Sub pausebutton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles pausebutton.Click
AxWindowsMediaPlayer1.Ctlcontrols.pause()
End Sub
End Class