Click here to Skip to main content
15,886,873 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: .net framework 2.0.50727 Pin
Sonia Gupta11-May-07 22:03
Sonia Gupta11-May-07 22:03 
AnswerRe: .net framework 2.0.50727 Pin
P P Vilsad11-May-07 22:26
P P Vilsad11-May-07 22:26 
QuestionRe: .net framework 2.0.50727 Pin
Sonia Gupta11-May-07 23:16
Sonia Gupta11-May-07 23:16 
AnswerRe: .net framework 2.0.50727 Pin
P P Vilsad12-May-07 19:45
P P Vilsad12-May-07 19:45 
Questionsetup exploration [modified] Pin
Sonia Gupta11-May-07 18:26
Sonia Gupta11-May-07 18:26 
QuestionProblem in OleDbDataAdapter.Update [modified] Pin
azusakt11-May-07 17:02
azusakt11-May-07 17:02 
QuestionHow to hide frame when clicking on white area of listview where there is no data? Pin
method00711-May-07 9:56
method00711-May-07 9:56 
Questionmultiple file search Pin
jds120711-May-07 7:05
jds120711-May-07 7:05 
have my program working but need to be able to search for files of multiple file types and search for multiple drives at the same time. Right now I can only search for one files type by typing the extension into a textbox. To search for the drive, i created a BrowseFolderDialog to search folder on a specific drive and the path is displayed in a textbox. So I have two question: Is there a way for me to search for multiple file types by typing the extensions in the textbox at the same time? Is there a way to search for more than one drive in a text box at one time?

Here is some code:

Private Sub GetDirectoryContents()
Dim FilePattern As String = "*." & TextBox2.Text.Trim
Dim sdir As String = TextBox1.Text.Trim
Dim dDir As New DirectoryInfo(sdir)
Dim fi As FileSystemInfo

For Each fi In dDir.GetFileSystemInfos(FilePattern)
ListBox1.Items.Add(fi.Name)
Next
End Sub

This is the class I created to search for the folders:

Dim MyBrowseFolder As New FolderBrowser()

Public Function ShowDialog(ByVal browseFolderTitle As String)
With MyBrowseFolder
.Style = FolderBrowserStyles.BrowseForComputer

.StartLocation = FolderBrowserFolder.MyComputer & .StartLocation = FolderBrowserFolder.MyDocuments

'Dialog box title
.Description = browseFolderTitle
.ShowDialog()

'Return the folder path.
ShowDialog = .DirectoryPath


jds1207
AnswerRe: multiple file search Pin
P P Vilsad11-May-07 9:03
P P Vilsad11-May-07 9:03 
GeneralRe: multiple file search Pin
jds120711-May-07 9:07
jds120711-May-07 9:07 
AnswerRe: multiple file search Pin
P P Vilsad11-May-07 9:30
P P Vilsad11-May-07 9:30 
GeneralRe: multiple file search Pin
jds120711-May-07 9:54
jds120711-May-07 9:54 
GeneralRe: multiple file search Pin
P P Vilsad11-May-07 10:11
P P Vilsad11-May-07 10:11 
GeneralRe: multiple file search Pin
jds120711-May-07 10:26
jds120711-May-07 10:26 
GeneralRe: multiple file search Pin
P P Vilsad11-May-07 10:35
P P Vilsad11-May-07 10:35 
QuestionVB GIS Project Pin
Zigoxo11-May-07 5:43
Zigoxo11-May-07 5:43 
AnswerRe: VB GIS Project Pin
Colin Angus Mackay11-May-07 5:53
Colin Angus Mackay11-May-07 5:53 
Questionregarding datagrid problem in vb.net? Pin
sathyan_829411-May-07 5:18
sathyan_829411-May-07 5:18 
AnswerRe: regarding datagrid problem in vb.net? Pin
Kevin Nicol11-May-07 7:35
Kevin Nicol11-May-07 7:35 
QuestionSetting Permissions for new folders .NET 2.0 Pin
aro198111-May-07 4:35
aro198111-May-07 4:35 
QuestionSAP.net Connector Pin
sunder vel11-May-07 3:38
sunder vel11-May-07 3:38 
AnswerRe: SAP.net Connector Pin
Dave Kreskowiak11-May-07 3:58
mveDave Kreskowiak11-May-07 3:58 
Questioncode for forex exchange using vb.net 2003 Pin
Stormint11-May-07 3:19
Stormint11-May-07 3:19 
AnswerRe: code for forex exchange using vb.net 2003 Pin
Dave Kreskowiak11-May-07 3:57
mveDave Kreskowiak11-May-07 3:57 
AnswerRe: Data Reports Pin
Dave Kreskowiak11-May-07 3:55
mveDave Kreskowiak11-May-07 3:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.