D
Dave Griffiths
Hi All
Using vb.net 2005
I am listing a directory into a ListView Control using the following code,
it works no problems.
Is it possible to list the files of more than one extention say .jpg .gif
and .png at the same time or must I use the routine 3 times once for each
extention to get all the file for the 3 extentions
Dim di As New DirectoryInfo(path)
Dim f As FileInfo
Dim x As Integer = 0
For Each f In di.GetFiles("*.jpg")
lv.Items.Add(f.Name)
lv.Items(x).SubItems.Add(f.Extension)
x += 1
Next
Thanks in advance.
DaveG
Using vb.net 2005
I am listing a directory into a ListView Control using the following code,
it works no problems.
Is it possible to list the files of more than one extention say .jpg .gif
and .png at the same time or must I use the routine 3 times once for each
extention to get all the file for the 3 extentions
Dim di As New DirectoryInfo(path)
Dim f As FileInfo
Dim x As Integer = 0
For Each f In di.GetFiles("*.jpg")
lv.Items.Add(f.Name)
lv.Items(x).SubItems.Add(f.Extension)
x += 1
Next
Thanks in advance.
DaveG