Click here to Skip to main content
15,916,846 members
Home / Discussions / C#
   

C#

 
AnswerRe: Microsoft .NET parser C# error ? Pin
J. Dunlap22-Dec-03 9:31
J. Dunlap22-Dec-03 9:31 
GeneralRe: Microsoft .NET parser C# error ? Pin
Anonymous22-Dec-03 23:48
Anonymous22-Dec-03 23:48 
GeneralRe: Microsoft .NET parser C# error ? Pin
Member 26118822-Dec-03 23:48
Member 26118822-Dec-03 23:48 
GeneralRe: Microsoft .NET parser C# error ? Pin
identy6-Jan-04 9:53
identy6-Jan-04 9:53 
GeneralString Alignment Question Pin
RB@Emphasys22-Dec-03 8:18
RB@Emphasys22-Dec-03 8:18 
GeneralRe: String Alignment Question Pin
leppie22-Dec-03 9:57
leppie22-Dec-03 9:57 
GeneralRe: String Alignment Question Pin
Heath Stewart22-Dec-03 11:10
protectorHeath Stewart22-Dec-03 11:10 
GeneralRe: String Alignment Question Pin
RB@Emphasys29-Dec-03 3:07
RB@Emphasys29-Dec-03 3:07 
GeneralRe: String Alignment Question Pin
Heath Stewart29-Dec-03 3:56
protectorHeath Stewart29-Dec-03 3:56 
QuestionStatic destructor? Pin
CBoland22-Dec-03 6:07
CBoland22-Dec-03 6:07 
AnswerRe: Static destructor? Pin
leppie22-Dec-03 6:38
leppie22-Dec-03 6:38 
GeneralRe: Static destructor? Pin
CBoland22-Dec-03 7:04
CBoland22-Dec-03 7:04 
GeneralString tokenizer in C# Pin
dabs22-Dec-03 5:37
dabs22-Dec-03 5:37 
GeneralRe: String tokenizer in C# Pin
leppie22-Dec-03 6:35
leppie22-Dec-03 6:35 
GeneralRe: String tokenizer in C# Pin
Larry Antram22-Dec-03 11:51
Larry Antram22-Dec-03 11:51 
GeneralC# API to generate PDF files from XSL:FO Pin
MrEyes22-Dec-03 4:21
MrEyes22-Dec-03 4:21 
GeneralRe: C# API to generate PDF files from XSL:FO Pin
Philip Fitzsimons22-Dec-03 4:37
Philip Fitzsimons22-Dec-03 4:37 
GeneralRe: C# API to generate PDF files from XSL:FO Pin
MrEyes22-Dec-03 5:17
MrEyes22-Dec-03 5:17 
Generalglobal variable in c# Pin
Anonymous22-Dec-03 4:06
Anonymous22-Dec-03 4:06 
GeneralRe: global variable in c# Pin
ThoWeib22-Dec-03 4:28
ThoWeib22-Dec-03 4:28 
GeneralRe: global variable in c# Pin
Heath Stewart22-Dec-03 4:30
protectorHeath Stewart22-Dec-03 4:30 
GeneralConfiguration file Pin
Mazdak22-Dec-03 3:31
Mazdak22-Dec-03 3:31 
GeneralRe: Configuration file Pin
Heath Stewart22-Dec-03 4:26
protectorHeath Stewart22-Dec-03 4:26 
There is not built-in support for writing app configs, but you can use the System.Xml classes to manipulate the XML DOM. Note that your application will not see these settings until restarted, though. I did post several replies to similar questions in the recent past, so search the comments of this forum, using the AppDomainSetup keyword.

As far as writing to the config, you have to remember one very important thing: leave other settings untouched! Users may have customized how the CLR runs your app or even customized settings for your program (like, in <appSettings>) that you don't want to overwrite. Nick wrote one article about this: http://www.codeproject.com/csharp/config_settings.asp[^]. There are others, too.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
QuestionRegistry or Special Folders? Pin
Ken Galer22-Dec-03 3:25
Ken Galer22-Dec-03 3:25 
AnswerRe: Registry or Special Folders? Pin
Heath Stewart22-Dec-03 4:21
protectorHeath Stewart22-Dec-03 4:21 

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.