![]() |
[VB.Net] Making a cool File/Directory Search - Printable Version +- 0Day Forums (https://0day.red) +-- Forum: Coding (https://0day.red/Forum-Coding) +--- Forum: VB.NET (https://0day.red/Forum-VB-NET) +--- Thread: [VB.Net] Making a cool File/Directory Search (/Thread-VB-Net-Making-a-cool-File-Directory-Search) |
[VB.Net] Making a cool File/Directory Search - keeto - 12-07-2010 Searching Directories and Sub-directories: 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:
This is all the code you need in a button click event. Hidden Content That's all for now, happy coding. RE: [VB.Net] Making a cool File/Directory Search - jenifferqyfzfhud - 12-07-2010 nice program will be handy for quick searches RE: [VB.Net] Making a cool File/Directory Search - lamdin402 - 12-09-2010 I was searching for this!!! Thanks :smile: now my html/txt injector is complete!!! RE: [VB.Net] Making a cool File/Directory Search - iotacismus667110 - 12-10-2010 No problem, glad it could help you. :smile: By the way, that is also an example for how to use a Progressbar correctly. RE: [VB.Net] Making a cool File/Directory Search - ditsierqypznhj - 01-01-2011 NICE , THX FOR SHARE KEEP IT UP RE: [VB.Net] Making a cool File/Directory Search - fennelly479 - 03-22-2013 Quote:(03-21-2013, 02:44 AM)404hacker Wrote: Iirc the strPath is supposed to be the combobox. Why not a textbox? Because it can be used to show the history of last searched items. The textbox was probably used for extensions. In the snippet it's hard-coded to search for all extensions (*.*). RE: [VB.Net] Making a cool File/Directory Search - glorify941299 - 03-24-2013 Why do you have this in the loop? Hidden Content RE: [VB.Net] Making a cool File/Directory Search - Mrscreenplay3 - 03-24-2013 Why do you have this in the loop? Hidden Content RE: [VB.Net] Making a cool File/Directory Search - unreconnoitereds882140 - 03-24-2013 Quote:(03-24-2013, 06:17 AM)ArkPhaze Wrote: It's an old code, I don't know why I put that. The app will stop responding because of the frequent update of the ListView, so probably a lazy way to prevent it. Not sure. RE: [VB.Net] Making a cool File/Directory Search - delusive733104 - 03-24-2013 Quote:(03-24-2013, 06:17 AM)ArkPhaze Wrote: It's an old code, I don't know why I put that. The app will stop responding because of the frequent update of the ListView, so probably a lazy way to prevent it. Not sure. |