Click here to Skip to main content
16,004,927 members
Home / Discussions / C#
   

C#

 
GeneralRe: Get/Set for List in C# Pin
Luc Pattyn21-May-09 4:21
sitebuilderLuc Pattyn21-May-09 4:21 
GeneralRe: Get/Set for List in C# Pin
musefan21-May-09 4:37
musefan21-May-09 4:37 
GeneralRe: Get/Set for List in C# Pin
Paddy Boyd21-May-09 5:24
Paddy Boyd21-May-09 5:24 
GeneralRe: Get/Set for List in C# Pin
Luc Pattyn21-May-09 5:30
sitebuilderLuc Pattyn21-May-09 5:30 
Questionexcel x-axis in Time format 00:00:00 using C# Pin
carnister21-May-09 2:49
carnister21-May-09 2:49 
QuestionSave to default program files folder Pin
Jon Henry21-May-09 2:30
Jon Henry21-May-09 2:30 
AnswerRe: Save to default program files folder Pin
musefan21-May-09 2:35
musefan21-May-09 2:35 
AnswerRe: Save to default program files folder [modified] Pin
Luc Pattyn21-May-09 3:41
sitebuilderLuc Pattyn21-May-09 3:41 
Hi,

what musefan told you is the correct answer to your specific question, however you should not do that at all for several reasons:

1. the "Program Files" folder is not supposed to contain files directly; it holds folders, one per application.

2. the "Program Files" folder is a shared folder, all users can read it, chances are noone can write there (Vista would deny write access, the system admin might decide to make the folder read-only on all Windows versions.

Hence you should store your data files elsewhere; now the SpecialFolder has several useful values, such as AppData (user-specific location) and CommonAppDate (shared by all users).
[ADDED]There too you should obey a folder hierarchy, so create a subfolder either for your company or your product.[/ADDED]

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

modified on Thursday, May 21, 2009 11:04 AM

GeneralRe: Save to default program files folder Pin
Jon Henry21-May-09 13:00
Jon Henry21-May-09 13:00 
GeneralRe: Save to default program files folder Pin
Luc Pattyn21-May-09 13:35
sitebuilderLuc Pattyn21-May-09 13:35 
QuestionCurious question as I am c# developer. [modified] Pin
Blubbo21-May-09 2:23
Blubbo21-May-09 2:23 
AnswerRe: Curious question as I am c# developer. Pin
musefan21-May-09 2:33
musefan21-May-09 2:33 
AnswerRe: Curious question as I am c# developer. Pin
EliottA21-May-09 3:01
EliottA21-May-09 3:01 
JokeRe: Curious question as I am c# developer. Pin
Manas Bhardwaj21-May-09 4:02
professionalManas Bhardwaj21-May-09 4:02 
GeneralRe: Curious question as I am c# developer. Pin
PIEBALDconsult21-May-09 5:20
mvePIEBALDconsult21-May-09 5:20 
QuestionUsing UserFields and Date Fields in Web Parts Pin
lday8621-May-09 2:22
lday8621-May-09 2:22 
QuestionCombining default xml serialization and custom xml serialization. Pin
rahulvb2821-May-09 2:03
rahulvb2821-May-09 2:03 
QuestionCrysatal Report Problem Pin
Mogaambo21-May-09 1:48
Mogaambo21-May-09 1:48 
QuestionRegion based shape representation Pin
raouaa21-May-09 1:15
raouaa21-May-09 1:15 
AnswerRe: Region based shape representation Pin
Henry Minute21-May-09 1:50
Henry Minute21-May-09 1:50 
QuestionReturning Field Names in SharePoint Pin
lday8621-May-09 1:04
lday8621-May-09 1:04 
GeneralGantt chart control Pin
hairy_hats21-May-09 0:48
hairy_hats21-May-09 0:48 
GeneralRe: Gantt chart control Pin
musefan21-May-09 1:06
musefan21-May-09 1:06 
GeneralRe: Gantt chart control Pin
hairy_hats21-May-09 1:22
hairy_hats21-May-09 1:22 
GeneralRe: Gantt chart control Pin
musefan21-May-09 1:25
musefan21-May-09 1:25 

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.