Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / December 2006

Tip: Looking for answers? Try searching our database.

Treeview File System

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Larry Dodd - 22 Dec 2006 23:27 GMT
I would like to know the best way to load a Treeview in VB.NET 2005 with the
directories and files located in a path on the hard drive. I would also like
to know the best way to refresh this view when a file was added or deleted
from the file system as well.
Robbe Morris [C# MVP] - 23 Dec 2006 03:48 GMT
You want to look up FileSystemWatcher to react to changes.
If you aren't familiar with the System.IO namespace for iterating
folders and files, check here:

http://www.eggheadcafe.com/tutorials/aspnet/cea7ec01-3944-4295-8512-462b2a15a09b
/net-read-and-write-files.aspx


Signature

Robbe Morris - 2004-2006 Microsoft MVP C#
I've mapped the database to .NET class properties and methods to
implement an multi-layered object oriented environment for your
data access layer.  Thus, you should rarely ever have to type the words
SqlCommand, SqlDataAdapter, or SqlConnection again.
http://www.eggheadcafe.com/articles/adonet_source_code_generator.asp

>I would like to know the best way to load a Treeview in VB.NET 2005 with
>the
> directories and files located in a path on the hard drive. I would also
> like
> to know the best way to refresh this view when a file was added or deleted
> from the file system as well.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.