0Day Forums
[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)

Pages: 1 2 3 4


[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

[Image: FileSearch.png]

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.


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:

[To see links please register here]

you have not declared strpath and i cant see any codes for the combobox there can you please help me

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:

[To see links please register here]

Why do you have this in the loop?
Hidden Content

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:

[To see links please register here]

Why do you have this in the loop?
Hidden Content

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.