when i select a song and click on play button need is the playlist disable, means song play complete then playlist enable.
and playlist is showing complete directory name, need simple song name.
thanks my code is here.
using axwindowsmediaplayer
*** this is the category button where i select my song and fill playlist
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
playlist.Items.Clear()
Dim folderInfo As New IO.DirectoryInfo("d:\songs\wedding")
Dim arrFilesInFolder() As IO.FileInfo
Dim fileInFolder As IO.FileInfo
arrFilesInFolder = folderInfo.GetFiles("*.mp3")
For Each fileInFolder In arrFilesInFolder
playlist.Items.Add(fileInFolder.FullName)
Next
End Sub
*** here I am trying to disable and enable my playlist. but not successful
Private Sub AxWindowsMediaPlayer2_StatusChange(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxWindowsMediaPlayer2.StatusChange
If WMPLib.WMPPlayState.wmppsPlaying Then
playlist.Enabled = False
Else
playlist.Enabled = True
End If
End Sub
End Class

New Topic/Question
Reply




MultiQuote






|