views:

34

answers:

2

i am saving dafault values in an xml file. if i dont have access to the xml file i should show message in the status bar

+1  A: 

Just try to open it, if you don't have access it will throw a System.UnauthorizedAccessException or if it is in use it will throw a System.IO.IOException, catch these exceptions and display an access denied message to the user.

Ben Robinson