Olhado_
New member
I am in the process of creating a directory tree, using the treeview control. I realized there is a file directory control; but I did not want a separate window to pop up, in order to access it.
Anyways, I pretty much have working, except in a few cases, where it tries to access a folder that is inaccessible, even to me from Windows Explorer. When I try to access it, with Windows Explorer, I get "[Address] not accessible"; but when the .NET program tries to access it the same exception is thrown and the program does not recover (unlike Windows Explorer).
I do not care about accessing those directories (this is for a corporate program); but I would like to learn how to recover from that error by learning what property holds that exception.
I found the various access controls in System.Security namespace and tried using the canonicalAccess check, along with other permissions checks in that class; but it blocks folders I would like to access; but are listed as read-only, like "Document and Settings".
Does anyone have any advice of what other security properties I can access? It could be in VB or C# since I am pretty adapt at translating between them, even without a converter.
Thanks in advance.
Anyways, I pretty much have working, except in a few cases, where it tries to access a folder that is inaccessible, even to me from Windows Explorer. When I try to access it, with Windows Explorer, I get "[Address] not accessible"; but when the .NET program tries to access it the same exception is thrown and the program does not recover (unlike Windows Explorer).
I do not care about accessing those directories (this is for a corporate program); but I would like to learn how to recover from that error by learning what property holds that exception.
I found the various access controls in System.Security namespace and tried using the canonicalAccess check, along with other permissions checks in that class; but it blocks folders I would like to access; but are listed as read-only, like "Document and Settings".
Does anyone have any advice of what other security properties I can access? It could be in VB or C# since I am pretty adapt at translating between them, even without a converter.
Thanks in advance.