Click here to Skip to main content
15,881,882 members
Home / Discussions / C#
   

C#

 
GeneralRe: save to the base by choosing date from datetimepicker Pin
Brij10-Nov-08 20:39
mentorBrij10-Nov-08 20:39 
GeneralRe: save to the base by choosing date from datetimepicker Pin
N a v a n e e t h10-Nov-08 21:19
N a v a n e e t h10-Nov-08 21:19 
AnswerRe: save to the base by choosing date from datetimepicker Pin
N a v a n e e t h10-Nov-08 19:46
N a v a n e e t h10-Nov-08 19:46 
GeneralRe: save to the base by choosing date from datetimepicker Pin
dianikol11-Nov-08 4:14
dianikol11-Nov-08 4:14 
QuestionChecking folder read write access C# Pin
raesa10-Nov-08 17:58
raesa10-Nov-08 17:58 
AnswerRe: Checking folder read write access C# Pin
Brij10-Nov-08 18:52
mentorBrij10-Nov-08 18:52 
QuestionChecking folder read write access C# Pin
raesa10-Nov-08 17:58
raesa10-Nov-08 17:58 
AnswerRe: Checking folder read write access C# Pin
N a v a n e e t h10-Nov-08 19:59
N a v a n e e t h10-Nov-08 19:59 
FileIOPermission is there since .NET 1.1. Use the Demand method to check you have access to folders. Check the following code (not tested on .NET 1.1)
bool CanWriteToFolder(string folder)
{
     FileIOPermission f = new FileIOPermission(FileIOPermissionAccess.Write, folder);
     try {
         f.Demand();
     }
     catch (SecurityException) {
         return false;
     }
     return true;
}
Check documentation[^] for detailed examples.


GeneralRe: Checking folder read write access C# Pin
raesa10-Nov-08 20:15
raesa10-Nov-08 20:15 
GeneralRe: Checking folder read write access C# Pin
Tri Q Tran20-Jul-09 21:15
Tri Q Tran20-Jul-09 21:15 
GeneralRe: Checking folder read write access C# Pin
Kelvin Armstrong18-Oct-09 7:00
Kelvin Armstrong18-Oct-09 7:00 
AnswerRe: Checking folder read write access C# Pin
User-Rock25-Nov-09 19:13
User-Rock25-Nov-09 19:13 
GeneralRe: Checking folder read write access C# Pin
Liu Junfeng15-Mar-11 0:19
Liu Junfeng15-Mar-11 0:19 
QuestionDiscovering location of csc.exe through code Pin
krafix10-Nov-08 13:24
krafix10-Nov-08 13:24 
AnswerRe: Discovering location of csc.exe through code Pin
netJP12L10-Nov-08 14:40
netJP12L10-Nov-08 14:40 
AnswerRe: Discovering location of csc.exe through code Pin
Ravi Bhavnani10-Nov-08 16:41
professionalRavi Bhavnani10-Nov-08 16:41 
GeneralRe: Discovering location of csc.exe through code Pin
Alan Balkany11-Nov-08 3:36
Alan Balkany11-Nov-08 3:36 
QuestionHow do I find a XML element based on attribute Pin
Ola E10-Nov-08 11:02
Ola E10-Nov-08 11:02 
AnswerRe: How do I find a XML element based on attribute Pin
Pete O'Hanlon10-Nov-08 11:07
mvePete O'Hanlon10-Nov-08 11:07 
GeneralRe: How do I find a XML element based on attribute Pin
Ola E10-Nov-08 19:03
Ola E10-Nov-08 19:03 
GeneralRe: How do I find a XML element based on attribute Pin
Tuwing.Sabado10-Nov-08 21:13
Tuwing.Sabado10-Nov-08 21:13 
QuestionProblem Pin
netJP12L10-Nov-08 9:57
netJP12L10-Nov-08 9:57 
AnswerRe: Problem Pin
Pedram Behroozi10-Nov-08 10:13
Pedram Behroozi10-Nov-08 10:13 
GeneralRe: Problem Pin
netJP12L10-Nov-08 10:22
netJP12L10-Nov-08 10:22 
QuestionCAB Single Instance App Pin
Brian Jenkins10-Nov-08 9:48
Brian Jenkins10-Nov-08 9:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.