User settings does not load new value after VS re-launch

User settings does not load new value after VS re-launch

Post by SHVna » Sat, 26 Jul 2008 23:28:03


Hi,

My.settings.mystring is a "User" scope setting and I expect that the value
can be reset by

My.Settings.mystring = "Test"
My.Settings.Save

It works fine if the application is stopped and restartted. However,
"mystring" does not return the value of "Test" after whole Visual Studio is
closed and re-launched. I upgrande my VS from 2005 to 2008, the problem
remains.

Thanks in advance fro your help.

Hugh
 
 
 

User settings does not load new value after VS re-launch

Post by ZG90TmV0RG » Wed, 06 Aug 2008 03:51:02

Under Application settings do you have "Save My.Settings on Shutdown"
checkecked?

David
--
======================================
David McCarter [Microsoft MVP]
www.dotNetTips.com
David McCarter''''s .NET Coding Standards available at:
http://www.yqcomputer.com/