Bonjour
Aujourd'hui , je vais vous montrer Comment créer un Lecteur Média avec Playlist Avec Visual Basic

Le code : 
Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim listfile As New OpenFileDialog
        listfile.ShowDialog()
        ListBox1.Items.Add(listfile.FileName)
    End Sub
    Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
        AxWindowsMediaPlayer1.URL = ListBox1.SelectedItem
    End Sub
End Class
Enregistrer un commentaire