Click here to Skip to main content
15,891,976 members
Home / Discussions / C#
   

C#

 
GeneralRe: Unique Serial Number of an SD (Secure Digital) Memory Card Pin
OriginalGriff14-Dec-09 1:15
mveOriginalGriff14-Dec-09 1:15 
QuestionApplication common data with write permission to all user Pin
Maddie from Dartford13-Dec-09 23:41
Maddie from Dartford13-Dec-09 23:41 
AnswerRe: Application common data with write permission to all user Pin
OriginalGriff14-Dec-09 1:32
mveOriginalGriff14-Dec-09 1:32 
GeneralRe: Application common data with write permission to all user Pin
Maddie from Dartford14-Dec-09 2:49
Maddie from Dartford14-Dec-09 2:49 
GeneralRe: Application common data with write permission to all user Pin
OriginalGriff14-Dec-09 4:10
mveOriginalGriff14-Dec-09 4:10 
GeneralRe: Application common data with write permission to all user Pin
Maddie from Dartford14-Dec-09 6:39
Maddie from Dartford14-Dec-09 6:39 
GeneralRe: Application common data with write permission to all user Pin
OriginalGriff14-Dec-09 8:32
mveOriginalGriff14-Dec-09 8:32 
GeneralRe: Application common data with write permission to all user Pin
Maddie from Dartford15-Dec-09 21:30
Maddie from Dartford15-Dec-09 21:30 
This is what i did and works for me.

bool isModified = false;
DirectoryInfo myDirectoryInfo = new DirectoryInfo("FolderPath");
DirectorySecurity myDirectorySecurity = myDirectoryInfo.GetAccessControl();

AccessRule rule = new FileSystemAccessRule("Users", 
                                            FileSystemRights.Write | 
                                                 FileSystemRights.ReadAndExecute | 
                                                 FileSystemRights.Modify, 
                                            InheritanceFlags.ContainerInherit | 
                                                 InheritanceFlags.ObjectInherit,
                                            PropagationFlags.InheritOnly,
                                            AccessControlType.Allow);

myDirectorySecurity .ModifyAccessRule(AccessControlModification.Add, rule, out isModified);
myDirectoryInfo .SetAccessControl(myDirectorySecurity );


Thanks to all.
QuestionC# code to Cut Polygon in shape file using MapWinGIS Pin
rag_Singh13-Dec-09 23:34
rag_Singh13-Dec-09 23:34 
Questionhow to create xm elements with nodes Pin
Priya Prk13-Dec-09 23:33
Priya Prk13-Dec-09 23:33 
AnswerMessage Closed Pin
13-Dec-09 23:48
stancrm13-Dec-09 23:48 
GeneralRe: how to create xm elements with nodes Pin
Priya Prk14-Dec-09 0:13
Priya Prk14-Dec-09 0:13 
Questionadd images in checkedlistbox in C# Pin
yogesh_softworld12313-Dec-09 22:44
yogesh_softworld12313-Dec-09 22:44 
AnswerRe: add images in checkedlistbox in C# Pin
Eduard Keilholz13-Dec-09 23:15
Eduard Keilholz13-Dec-09 23:15 
QuestionEnabling buttons at run time Pin
tasumisra13-Dec-09 22:37
tasumisra13-Dec-09 22:37 
AnswerRe: Enabling buttons at run time Pin
Rob Philpott13-Dec-09 22:57
Rob Philpott13-Dec-09 22:57 
AnswerRe: Enabling buttons at run time [modified] Pin
#realJSOP13-Dec-09 23:56
mve#realJSOP13-Dec-09 23:56 
GeneralRe: Enabling buttons at run time Pin
tasumisra14-Dec-09 4:10
tasumisra14-Dec-09 4:10 
AnswerRe: Enabling buttons at run time Pin
vtchris-peterson14-Dec-09 4:00
vtchris-peterson14-Dec-09 4:00 
QuestionHow to get noticed about z-order change? Pin
cuker113-Dec-09 20:46
cuker113-Dec-09 20:46 
AnswerRe: How to get noticed about z-order change? Pin
dan!sh 13-Dec-09 21:34
professional dan!sh 13-Dec-09 21:34 
QuestionChange currently image? Pin
dennis_max2713-Dec-09 20:44
dennis_max2713-Dec-09 20:44 
AnswerRe: Change currently image? Pin
dan!sh 13-Dec-09 21:00
professional dan!sh 13-Dec-09 21:00 
GeneralRe: Change currently image? Pin
dennis_max2713-Dec-09 21:18
dennis_max2713-Dec-09 21:18 
GeneralRe: Change currently image? Pin
dan!sh 13-Dec-09 21:32
professional dan!sh 13-Dec-09 21:32 

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.