Home All Groups Group Topic Archive Search About

Create a TreeView to display content like Explorer

Author
8 Jun 2006 1:01 AM
xaviero
I would would like to display the conent of the computer exactly like
it is displayed in the Explorer window:

Desktop
-My Documents
-My Computer
    -**Drives "A" through "Z"**
    -Shared Documents
-My Network Places
-Recycle Bin
-**All Folders On Desktop**

I know how to build the logical drives using
IO.Directory.GetLogicalDrives() but how can I get the path for the
"Recycle Bin", "My Docs" and the "Desktop" and how do I iterate through
"My Network Places"

Thanks for your help..

Author
8 Jun 2006 5:11 AM
Cor Ligthert [MVP]
Xaviero,

We don't know what kind of VS version you are using therefore I will start
with telling that with VB 2005 the first place to look for a solution for
your problem is in my idea the "my" namespace.

http://msdn2.microsoft.com/en-us/library/5btzf5yk.aspx

I hope this helps sofar,

Cor

<xavi***@gmail.com> schreef in bericht
Show quoteHide quote
news:1149728463.850299.229240@y43g2000cwc.googlegroups.com...
>I would would like to display the conent of the computer exactly like
> it is displayed in the Explorer window:
>
> Desktop
> -My Documents
> -My Computer
>    -**Drives "A" through "Z"**
>    -Shared Documents
> -My Network Places
> -Recycle Bin
> -**All Folders On Desktop**
>
> I know how to build the logical drives using
> IO.Directory.GetLogicalDrives() but how can I get the path for the
> "Recycle Bin", "My Docs" and the "Desktop" and how do I iterate through
> "My Network Places"
>
> Thanks for your help..
>
Author
8 Jun 2006 5:18 AM
Doug Bell
Xavier,
Have a look at:
http://www.thecodeproject.com/vb/net/VbNetExpTree.asp

Doug

<xavi***@gmail.com> wrote in message
Show quoteHide quote
news:1149728463.850299.229240@y43g2000cwc.googlegroups.com...
> I would would like to display the conent of the computer exactly like
> it is displayed in the Explorer window:
>
> Desktop
>  -My Documents
>  -My Computer
>     -**Drives "A" through "Z"**
>     -Shared Documents
>  -My Network Places
>  -Recycle Bin
>  -**All Folders On Desktop**
>
> I know how to build the logical drives using
> IO.Directory.GetLogicalDrives() but how can I get the path for the
> "Recycle Bin", "My Docs" and the "Desktop" and how do I iterate through
> "My Network Places"
>
> Thanks for your help..
>