Click here to Skip to main content
15,892,161 members
Home / Discussions / C#
   

C#

 
QuestionMemory usage problem Pin
stancrm15-Sep-08 22:59
stancrm15-Sep-08 22:59 
AnswerRe: Memory usage problem Pin
Harvey Saayman15-Sep-08 23:29
Harvey Saayman15-Sep-08 23:29 
GeneralRe: Memory usage problem Pin
Dave Kreskowiak16-Sep-08 2:02
mveDave Kreskowiak16-Sep-08 2:02 
AnswerRe: Memory usage problem Pin
DaveyM6915-Sep-08 23:44
professionalDaveyM6915-Sep-08 23:44 
AnswerRe: Memory usage problem Pin
Frank Horn16-Sep-08 0:12
Frank Horn16-Sep-08 0:12 
AnswerRe: Memory usage problem Pin
Dave Kreskowiak16-Sep-08 2:06
mveDave Kreskowiak16-Sep-08 2:06 
GeneralRe: Memory usage problem Pin
Dan Neely16-Sep-08 2:12
Dan Neely16-Sep-08 2:12 
QuestionWhy is like that ? [modified] Pin
Mogaambo15-Sep-08 22:35
Mogaambo15-Sep-08 22:35 
//below is my code , i want to add one entry

System.Configuration.Configuration config =
ConfigurationManager.OpenExeConfiguration("AppDomain.CurrentDomain.BaseDirectory +"..\\..\\App.config");


// Get the count of the Application Settings.
int appStgCnt = config.AppSettings.Settings.Count;


string asName = "AppStg" + appStgCnt.ToString();


// Add an Application Setting.
config.AppSettings.Settings.Add(asName,
DateTime.Now.ToLongDateString() + " " + DateTime.Now.ToLongTimeString());

// Save the configuration file.
config.Save(ConfigurationSaveMode.Modified);

// Force a reload of a changed section.
ConfigurationManager.RefreshSection("appSettings");



but instead of writing in app.config , it creates another app.config.config file, so why is it so??????

“You will never be a leader unless you first learn to follow and be led.”
–Tiorio

"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

modified on Tuesday, September 16, 2008 5:02 AM

AnswerRe: Why is like that ? Pin
N a v a n e e t h15-Sep-08 22:45
N a v a n e e t h15-Sep-08 22:45 
GeneralRe: Why is like that ? Pin
Mogaambo15-Sep-08 23:02
Mogaambo15-Sep-08 23:02 
GeneralRe: Why is like that ? Pin
DaveyM6915-Sep-08 23:23
professionalDaveyM6915-Sep-08 23:23 
GeneralRe: Why is like that ? Pin
Mogaambo15-Sep-08 23:42
Mogaambo15-Sep-08 23:42 
GeneralRe: Why is like that ? Pin
DaveyM6916-Sep-08 0:06
professionalDaveyM6916-Sep-08 0:06 
AnswerRe: Why is like that ? Pin
dojohansen16-Sep-08 2:55
dojohansen16-Sep-08 2:55 
Questionrichtextbox 's DetectUrls property Pin
Lim Yuxuan15-Sep-08 22:22
Lim Yuxuan15-Sep-08 22:22 
AnswerRe: richtextbox 's DetectUrls property Pin
DaveyM6915-Sep-08 22:42
professionalDaveyM6915-Sep-08 22:42 
GeneralRe: richtextbox 's DetectUrls property Pin
Lim Yuxuan15-Sep-08 22:50
Lim Yuxuan15-Sep-08 22:50 
GeneralRe: richtextbox 's DetectUrls property Pin
DaveyM6915-Sep-08 22:58
professionalDaveyM6915-Sep-08 22:58 
Questioni want assing a user define password 2 my project pls help me out Pin
bhargav12315-Sep-08 21:37
bhargav12315-Sep-08 21:37 
AnswerRe: i want assing a user define password 2 my project pls help me out Pin
Harvey Saayman15-Sep-08 21:45
Harvey Saayman15-Sep-08 21:45 
GeneralRe: i want assing a user define password 2 my project pls help me out Pin
#realJSOP15-Sep-08 23:26
mve#realJSOP15-Sep-08 23:26 
GeneralRe: i want assing a user define password 2 my project pls help me out Pin
Harvey Saayman15-Sep-08 23:29
Harvey Saayman15-Sep-08 23:29 
Questioninvalid cast exception Pin
preetpal15-Sep-08 21:09
preetpal15-Sep-08 21:09 
AnswerRe: invalid cast exception Pin
N a v a n e e t h15-Sep-08 21:12
N a v a n e e t h15-Sep-08 21:12 
GeneralRe: invalid cast exception Pin
preetpal15-Sep-08 21:56
preetpal15-Sep-08 21:56 

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.