Click here to Skip to main content
15,888,984 members
Home / Discussions / C#
   

C#

 
GeneralRe: my game code Pin
Dave Kreskowiak17-Apr-08 5:03
mveDave Kreskowiak17-Apr-08 5:03 
GeneralMTOM Pin
JustRonald17-Apr-08 2:25
JustRonald17-Apr-08 2:25 
AnswerRe: MTOM Pin
atuldeore17-Apr-08 3:16
atuldeore17-Apr-08 3:16 
GeneralRe: MTOM Pin
JustRonald17-Apr-08 3:52
JustRonald17-Apr-08 3:52 
Generalexception in ReaderWriterLock Pin
George_George17-Apr-08 1:47
George_George17-Apr-08 1:47 
Generalapp.config wtf Pin
Razvan Dimescu17-Apr-08 1:00
Razvan Dimescu17-Apr-08 1:00 
GeneralRe: app.config wtf Pin
Ed.Poore17-Apr-08 1:13
Ed.Poore17-Apr-08 1:13 
GeneralRe: app.config wtf Pin
Razvan Dimescu17-Apr-08 6:46
Razvan Dimescu17-Apr-08 6:46 
I need to load/save some settings from another assembly so I changed the code to:
Configuration configManager = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
ConfigurationSectionGroup section = configManager.SectionGroups["userSettings"];
if (section != null)
   {
    ClientSettingsSection clientSettings = section.Sections["OutlookSync.Properties.Settings"] as ClientSettingsSection;
    SettingElement element = clientSettings.Settings.Get("SalutSetting");
    clientSettings.Settings.Remove(element);

    element.Value.ValueXml.InnerText = "update";
    clientSettings.Settings.Add(element);
    configManager.Save();
             }

Everything is nice and smooth when i run this code on a test project - applications are modified and next time i start the application, the updated config is taken, but when i include it in my application, the changes are not saved next time when the application starts. I searched everywhere in the application in order to find our if the configurations are override but it seems they are not. I'm complete shocked and without any ideas.


GeneralRe: app.config wtf Pin
Ed.Poore17-Apr-08 11:35
Ed.Poore17-Apr-08 11:35 
Generalcrystall report! Pin
ali_reza_zareian17-Apr-08 0:19
ali_reza_zareian17-Apr-08 0:19 
QuestionHow to upload file onto server with credentials Pin
Chintan.Desai16-Apr-08 23:55
Chintan.Desai16-Apr-08 23:55 
AnswerRe: How to upload file onto server with credentials Pin
phannon8617-Apr-08 0:14
professionalphannon8617-Apr-08 0:14 
QuestionForm Layout at Runtime ? Pin
jamesjk16-Apr-08 23:33
jamesjk16-Apr-08 23:33 
AnswerRe: Form Layout at Runtime ? Pin
Simon P Stevens16-Apr-08 23:43
Simon P Stevens16-Apr-08 23:43 
GeneralRe: Form Layout at Runtime ? Pin
jamesjk16-Apr-08 23:52
jamesjk16-Apr-08 23:52 
GeneralRe: Form Layout at Runtime ? Pin
Simon P Stevens17-Apr-08 0:22
Simon P Stevens17-Apr-08 0:22 
QuestionHow to insert a control in grid view - C# windows [modified] Pin
NarVish16-Apr-08 23:25
NarVish16-Apr-08 23:25 
AnswerRe: How to insert a control in grid view - C# windows Pin
ali_reza_zareian17-Apr-08 0:21
ali_reza_zareian17-Apr-08 0:21 
Generalsingle selection across ListBoxes Pin
Maddie from Dartford16-Apr-08 22:57
Maddie from Dartford16-Apr-08 22:57 
GeneralRe: single selection across ListBoxes Pin
Simon P Stevens16-Apr-08 23:37
Simon P Stevens16-Apr-08 23:37 
GeneralRe: single selection across ListBoxes Pin
Maddie from Dartford16-Apr-08 23:53
Maddie from Dartford16-Apr-08 23:53 
GeneralRe: single selection across ListBoxes Pin
Simon P Stevens17-Apr-08 0:18
Simon P Stevens17-Apr-08 0:18 
QuestionProgram with SQL Support Pin
m1n1me16-Apr-08 22:57
m1n1me16-Apr-08 22:57 
GeneralRe: Program with SQL Support Pin
ali_reza_zareian17-Apr-08 0:28
ali_reza_zareian17-Apr-08 0:28 
GeneralRe: Program with SQL Support Pin
m1n1me17-Apr-08 18:44
m1n1me17-Apr-08 18:44 

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.