How did you populate your TreeView?
You needed to use the
DirectoryInfo Class to get the listing of the directories right?
I'm assuming that the selected value of your TreeView will contain the path to the directory that you want to loop through....
You need to use the DirectoryInfo class again and use the
GetFiles Method to retrieve a list of the files in that directory.
Then you need to loop through those files, determine if the file is valid for your "scanning process"... read the contents of the file and determine if it contains any of the words that you are looking for.
Take a look at the two links that I posted because they contain information and examples on how to use them.
-Frinny