B
Brent McIntyre
Good evening all,
I am writing a program which requires me to search for files as I have
done many times in Microsoft Excel Visual Basic for Applications, as per
below.
Set fs = CreateObject("Scripting.FileSystemObject")
With Application.FileSearch
.LookIn = DesktopAddress
.Filename = "*.TXT"
If .Execute() > 0 Then
For i = 1 To .FoundFiles.Count
ComboBox.AddItem .FoundFiles(i)
Next i
Else
Msgbox("There were no valid Files Found !")
End If
End With
Unfortunately I have had no luck in trying to find the equivalent
routines for Microsoft Visual Basic.Net, if anyone could help me it
would be greatly appreciated.
Yours sincerely,
Brent McIntyre
I am writing a program which requires me to search for files as I have
done many times in Microsoft Excel Visual Basic for Applications, as per
below.
Set fs = CreateObject("Scripting.FileSystemObject")
With Application.FileSearch
.LookIn = DesktopAddress
.Filename = "*.TXT"
If .Execute() > 0 Then
For i = 1 To .FoundFiles.Count
ComboBox.AddItem .FoundFiles(i)
Next i
Else
Msgbox("There were no valid Files Found !")
End If
End With
Unfortunately I have had no luck in trying to find the equivalent
routines for Microsoft Visual Basic.Net, if anyone could help me it
would be greatly appreciated.
Yours sincerely,
Brent McIntyre