Link to home
Start Free TrialLog in
Avatar of Candace Hagood
Candace HagoodFlag for United States of America

asked on

File tree Visual Studio Windows forms

Hi.
New to visual studio.  Using windows forms for a  database application.  Would like to add a file tree to the application for user navigation.  Does anyone have any idea how to do that or a good link with LOTS of visuals.  I am using visual basic for coding.  Thanks.
Avatar of Sawiner
Sawiner

There isn't any control like that built in the FW, however you can easily create one.

You can create the list it self using treeview or listview or any other list control and populate it using

System.IO.Directory / System.IO.DirectoryInfo /
System.IO.File / System.IO.FileInfo /
System.IO.DriveInfo

If you still want to use a third applcation, I remember hearing that the vb.net power pack has a control much like the DriveListBox that might be what you're looking for, however I haven't used it personally so can't tell.
Take a look:

http://msdn.microsoft.com/en-us/vbasic/bb735936.aspx

Good luck.
Avatar of Bob Learned
There are controls available through the Internet.  Normally, I try not to be a Google monkey, but a Google search with terms = "vb.net windows explorer control", returns results like this:

A Windows Explorer in a user control - CodeProject
http://www.codeproject.com/KB/miscctrl/ExplorerTree.aspx

FileView Control : Windows Explorer-Like File Browser Control
http://www.ssware.com/fileview/fileview.htm
Avatar of Candace Hagood

ASKER

Thanks for responding but not so much a windows explorer type of tree but more like the one in the link below.  A tree for the database.  The one below was done for access. can it be used in visual studio?


http://www.aadconsulting.com/nesttvwswb.html
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial