12-07-2010, 11:30 AM
Searching Directories and Sub-directories:
Files in Directories and sub-directories:
The SearchOption is currently AllDirectories, if you just want to limit it to the Top Directories then change the SearchOption.
Note: You will need a ListBox named ListBox1 for testing the above code.
Making a Cool File search
Controls needed:
This is all the code you need in a button click event.
That's all for now, happy coding.
Hidden Content
Files in Directories and sub-directories:
Hidden Content
The SearchOption is currently AllDirectories, if you just want to limit it to the Top Directories then change the SearchOption.
Note: You will need a ListBox named ListBox1 for testing the above code.
Making a Cool File search
Controls needed:
- ImageList (iconList)
ColorDepth = Depth32Bit
ImageSize = 32, 32
- ListView (ListView1)
Add 3 Coloumns (Filename, Size, Path)
View = Details
SmallImageList = iconList
- ComboBox (ComboBox1)
- TextBox (TextBox2)
- ProgressBar (ProgressBar1)
- Label (Label1)
- A Button for running the code
This is all the code you need in a button click event.
Hidden Content
That's all for now, happy coding.