|
-
Sep 20th, 2010, 08:24 PM
#1
Thread Starter
Member
[RESOLVED] help about listbox!!
hi guys, i am working on my search button that searches for the items in my listbox1. however, i have several problems.. one, is that i do not know how am i supposed to search in folder browsing dialog and two, i cannot search for the items inside my listbox1. any comments is very much appreciated. i am just a newbie and i think this is advanced for me, so please help me! thanks alot!
this is my code:
Code:
For Each foundFile As String In My.Computer.FileSystem.GetFiles(My.Computer.FileSystem.SpecialDirectories
_MyDocuments, FileIO.SearchOption.SearchAllSubDirectories) --> Note 1
If listbox1.Items.Contains(foundFile) Then --> Note 2
listbox2.Items.Add(foundFile) --> Note 3
Else
listbox3.Items.Add(foundFile) --> Note 4
End If
Next
note 1: i want to change the directory to a folder browse dialog not in my documents only
note 2: this are the items in the listbox that i am searching for
note 3: if found, the paths of the items will be displayed in this listbox
note 4: if it is not found, it will be displayed here
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|