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
A:
Check out this post: http://stackoverflow.com/questions/876473/c-is-there-a-way-to-check-if-a-file-is-in-use
James Santiago
2010-06-10 09:54:58
+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
2010-06-10 09:56:11