Advance Search in VB.Net

i have made one application in but problem is with advance search option which is one part of my application.problem is that i have two combobox for From option and another two for To option means i want to search files suppose From : January 2007 To: January 2008 and all files are in .pdf format so, how to serach this option?

Thanks in advance,[/b]


  • I'm assuming by this you want to search for files created (or possibly edited) within the specified time frame. If this is the case you need to add something like:

    [red] System.IO.File.GetCreationTime(CurrentFile) [/red]
    to your existing search code, where CurrentFile is a string containing the path of the file. If you want to search on last edited then it would be:

    [red] System.IO.File.GetLastWriteTime(CurrentFile) [/red]

    Hope this helps, Dai.

    Do or do not, there is no try. |
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion