I want to display music file (extension .wma ,.mp3 , .avi, etc..)
But I dont know how to display with a lot of extension
This is my code:
It's only display file extension .mp3 in ListBox1, but I want display more file extension
Can you help me?
Thanks for advanced!
But I dont know how to display with a lot of extension
This is my code:
VB.NET:
Private Sub TreeView1_NodeMouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeNodeMouseClickEventArgs) Handles TreeView1.NodeMouseDoubleClick
Dim catchNode As String
catchNode = TreeView1.GetNodeAt(e.X, e.Y).FullPath
Dim di As New IO.DirectoryInfo("E:\Music\" & catchNode)
ListBox1.DataSource = di.GetFiles("*.mp3", IO.SearchOption.AllDirectories)
End Sub
Can you help me?
Thanks for advanced!