On 5 Oct 2006 21:32:35 -0700, "frogman7" <fr******@googlemail.comwrote:
>AFter reading the doc it looks like i will have to try a different
approach
i want the user to be able to search for *.htm and only get the files
that have an htm extention not the html files. so i will have to add
some code to see if they only want the htm files and just return
thoses.
if you have any suggestions please let me know
One way -
This Mainpages folder contains a mix of files with .htm & .html extensions.
The resulting displayed listbox displays only the files with the .htm extensions.
Dim di As New DirectoryInfo("E:\Web Projects\Mainpages")
Dim fi As FileInfo() = di.GetFiles("*.htm")
For Each fiTemp As FileInfo In fi
If fiTemp.Extension = ".htm" Then
Me.ListBox1.Items.Add(fiTemp.Name)
End If
Next
Gene