
January 27th, 2005, 10:24 PM
|
|
Registered User
|
|
Join Date: Jan 2005
Posts: 1
Time spent in forums: 48 m 45 sec
Reputation Power: 0
|
|
TreeView + Drives
I am tinkering with VB.Net and wanted to add a Treeview to my program. I have added the treeview to my program and everything is running ok but the program that I saw originally added a dummy node to every Logical Drive it found, thus causing the drives to all have + signs next to them. I do not want to do this, I would like the program to figure out if the drive contains any files or folders, and if it does then add an empty node so that the + sign shows up.
The only problem I have is that when I scan the A drive with no disk in it I get a Disk not accessible error/warning message and I was wondering if there was a work around so I would not get this error or even if there is a way I can suppress it.
I was thinking of send keys or something similar to send the command to cancel but was hoping there was a different way to do this or something similar.
Thanks for any help, direction or words of wisdom you can provide.
Sorry if this is a newb question or one that has been asked before.
Moo
|