Click here to Skip to main content
15,905,233 members
Home / Discussions / C#
   

C#

 
AnswerRe: Static method and thread safe question Pin
Ennis Ray Lynch, Jr.14-Sep-10 7:01
Ennis Ray Lynch, Jr.14-Sep-10 7:01 
Questionusercontrol Pin
utunity14-Sep-10 5:01
utunity14-Sep-10 5:01 
AnswerRe: usercontrol Pin
Luc Pattyn14-Sep-10 5:45
sitebuilderLuc Pattyn14-Sep-10 5:45 
GeneralRe: usercontrol Pin
Henry Minute14-Sep-10 5:46
Henry Minute14-Sep-10 5:46 
AnswerRe: usercontrol Pin
Henry Minute14-Sep-10 5:45
Henry Minute14-Sep-10 5:45 
GeneralRe: usercontrol Pin
utunity14-Sep-10 6:02
utunity14-Sep-10 6:02 
GeneralRe: usercontrol Pin
Henry Minute14-Sep-10 6:14
Henry Minute14-Sep-10 6:14 
GeneralRe: usercontrol Pin
Luc Pattyn14-Sep-10 6:18
sitebuilderLuc Pattyn14-Sep-10 6:18 
GeneralRe: usercontrol Pin
utunity14-Sep-10 6:36
utunity14-Sep-10 6:36 
GeneralRe: usercontrol Pin
Luc Pattyn14-Sep-10 6:57
sitebuilderLuc Pattyn14-Sep-10 6:57 
GeneralRe: usercontrol Pin
utunity14-Sep-10 7:10
utunity14-Sep-10 7:10 
GeneralRe: usercontrol Pin
Luc Pattyn14-Sep-10 7:39
sitebuilderLuc Pattyn14-Sep-10 7:39 
GeneralRe: usercontrol Pin
utunity14-Sep-10 7:50
utunity14-Sep-10 7:50 
GeneralRe: usercontrol Pin
Henry Minute14-Sep-10 6:59
Henry Minute14-Sep-10 6:59 
GeneralRe: usercontrol Pin
Luc Pattyn14-Sep-10 6:17
sitebuilderLuc Pattyn14-Sep-10 6:17 
GeneralRe: usercontrol Pin
utunity14-Sep-10 10:50
utunity14-Sep-10 10:50 
QuestionCreating an ActiveX Control Pin
NarVish14-Sep-10 0:55
NarVish14-Sep-10 0:55 
AnswerRe: Creating an ActiveX Control Pin
Dave Kreskowiak14-Sep-10 4:02
mveDave Kreskowiak14-Sep-10 4:02 
GeneralRe: Creating an ActiveX Control Pin
NarVish14-Sep-10 18:47
NarVish14-Sep-10 18:47 
GeneralRe: Creating an ActiveX Control Pin
Dave Kreskowiak14-Sep-10 20:03
mveDave Kreskowiak14-Sep-10 20:03 
GeneralRe: Creating an ActiveX Control Pin
NarVish15-Sep-10 3:00
NarVish15-Sep-10 3:00 
GeneralRe: Creating an ActiveX Control Pin
Dave Kreskowiak15-Sep-10 12:43
mveDave Kreskowiak15-Sep-10 12:43 
QuestionWhere to write my program data? Pin
Amir_Saniyan14-Sep-10 0:00
Amir_Saniyan14-Sep-10 0:00 
Hi all,

Where to write (global) program data with full access for all users?

An answer is:
-------------
string path = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + @"\myfile.txt";
File.WriteAllText(path, "Hello World!");

but, is it a good solution?

The above solution is not good when the application creates a file with ADMIN priviege, and a NON-ADMIN user wants to delete the created file (because of priviege the file wasn't deleted).

sorry for my poor English Smile | :)
AnswerRe: Where to write my program data? Pin
Enobong Adahada14-Sep-10 0:21
Enobong Adahada14-Sep-10 0:21 
GeneralRe: Where to write my program data? Pin
Amir_Saniyan14-Sep-10 0:23
Amir_Saniyan14-Sep-10 0:23 

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.