|
RE: retrieving and displaying list of files
|
Rod Stephens
|
Jul 08, 2009 20:10 PDT
|
| | Ok, I'm relatively new to the Visual Studio realm and would like to know
if anyone has a suggestion how to get started on searching the hard
drive for PDF files, displaying them in a way so as to allow the user to
select one or multiple files then, with the click of a button, copy them
to a pre-determined location.
|
First you'll need to find the files. You can find lots of examples if you go to the VB Helper search page (http://www.vb-helper.com/search.html) and search for "search file."
Next you'll need a way to list the files. A simple method would be to list them in a CheckedListBox. Then the user can pick the ones he wants and press a button to launch the copying.
Displaying thumbnails of the PDFs would be harder. VB itself won't do that and it would probably be pretty slow if it could (judging from how slow it is to display a PDF in general).
You can copy the files in several ways. One of the easier is using:
My.Computer.FileSystem.CopyFile(source_file, destination_file)
I hope that helps. It should be a fairly fun and interesting project.
Rod
Rod Stephens
mstep-@msn.com
|
|
 |
|