SolvedAdding Certain Format In List Box

Posts 1–2 of 2 · Page 1 of 1
Adding Certain Format In List Box
Hi mpgh,

How to add in the listbox1 only one type of format?

It's the code to gett all the files in a directory.
Code:
Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        For Each file As String In My.Computer.FileSystem.GetFiles("C:\SG Interactive\Crossfire Europe\")
            ListBox1.Items.Add(file)
        Next
    End Sub
End Class
How i have to edit it to get only .dll files?

---------- Post added at 05:11 PM ---------- Previous post was at 05:07 PM ----------

Solved: Procedura: copiare file con un criterio specifico in una directory in Visual Basic

Sorry for the thread :\
Marked solved and closed.
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?