Problem with Settings.Save()

  • Thread starter Thread starter Boris Sargos
  • Start date Start date
B

Boris Sargos

Hi,

I don't maange to save the user settings in my application.
I created a settings file named MySettings.settings, that contains the
property "BackupFolder" (string typed), in User mode.
The syntax I use in the code to save the data is :

MySettings.Default["BackupFolder"] = m_TxtBackupFolder.Text;
MySettings.Default.Save();

But it doesn't work.
Did I forgfet anything ?

Any help is welcome. Thanks.
 
What is MySettings? What type is it? Is it a class of your own
design? 3rd party product?
 
Chris Dunaway a écrit :
What is MySettings? What type is it? Is it a class of your own
design? 3rd party product?

Hi Chris,

I work with VS 2005 beta 2. MySettings is a .settings type file.

Thanks,
Boris.
 
Boris Sargos said:
Hi,

I don't maange to save the user settings in my application.
I created a settings file named MySettings.settings, that contains the
property "BackupFolder" (string typed), in User mode.
The syntax I use in the code to save the data is :

MySettings.Default["BackupFolder"] = m_TxtBackupFolder.Text;
MySettings.Default.Save();

But it doesn't work.
Did I forgfet anything ?

Any help is welcome. Thanks.

Please don't post Whidbey beta stuff to this NG, it confuses people not
having installed the Beta bits.
Post your issues to the forum http://forums.microsoft.com or at least
mention in your posting that it's about Whidbey.

Willy.
 
Back
Top