Ive used treeviews before and have managed to get my head around them ok but this is the first time I have used one to list drives and folders like Windows Explorer (Dont need to worry about files btw). Anyway, Ive encountered a couple of problems.
1) I have had to eliminate drives that Arent ready. ie: empty floppy and optical drives otherwise trying to expand generates and error. I did this by simply ommitting drives that had no label. What I would like is to be able to handle empty drives properly like explorer does.
2) Regardless of the folder settings in Windows Explorer GetDirectories picks up system folders and adds them to the treeview and trying to expand these generates an Access denied error. Is it possible to make my App adhere to the windows folder settings?
Cheers!
1) I have had to eliminate drives that Arent ready. ie: empty floppy and optical drives otherwise trying to expand generates and error. I did this by simply ommitting drives that had no label. What I would like is to be able to handle empty drives properly like explorer does.
2) Regardless of the folder settings in Windows Explorer GetDirectories picks up system folders and adds them to the treeview and trying to expand these generates an Access denied error. Is it possible to make my App adhere to the windows folder settings?
Cheers!