Populate a ListBox with Subdirectories

  • Thread starter Thread starter Ben Scaithe
  • Start date Start date
B

Ben Scaithe

I'm new to VB.Net, and I'm trying to put a list of all of the folders (no
files) in F:\REPORTS\ inside a listbox on a form. The idea is to have the
user select a folder from the list, then hit a button to print all of the
items within that folder. I'm not having much luck on my own on this, so
any help would be greatly appreciated. Thanks!
 
Ben,

We are normally not making the program for you and you ask here 3 questions.

1. how do I get the directories
http://msdn.microsoft.com/library/d...html/frlrfsystemiodirectoryinfoclasstopic.asp

2. how I get that in a listbox,
I would use the treeview for that, a sample of an explorer like program is
in the resourcekit

VB.net Resource kit
http://msdn.microsoft.com/vbasic/vbrkit/default.aspx

And if you have problems installing the resource kit
http://msdn.microsoft.com/vbasic/vbrkit/faq/#installvdir

3.And than you ask how to print.
Have a look in the resourcekit as well for that.

I hope this helps?

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top