Click here to Skip to main content
15,903,033 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi I made some string in settings for my MySQL connection string,string like 'server' and 'username' and etc.
When I change and save string at run time, MySQL use old data to connecting to Database

What I have tried:

I tried
C#
Properties.Settings.Default.Reload();

and
C#
Properties.Settings.Default.Upgrade();


but nothing happend
Thanks for your answers
Posted
Updated 26-Dec-16 0:18am
v2

1 solution

Did you call this at all?

C#
Properties.Settings.Default.Save()
 
Share this answer
 
Comments
Member 11023062 26-Dec-16 6:22am    
Yes, I did
Properties.Settings.Default.Save()

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900