VB.net 2010 Saving the contents of a text box as the value of a setting

Hi

I worked out how to load the value of a string setting to a text box
Me.TextBox1.Text = My.Settings.Setting_Path
How do I do the reverse
My.Settings.Setting_Path = Me.TextBox1.Text  does not work
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
CodeCruiserConnect With a Mentor Commented:
What is the scope of the setting? Application scope settings are read only. Change the scope to User if you want to be able to change the setting.
0
 
effesCommented:
Hi,

did you call
My.Settings.Save
after assigning the new value?
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Just the answer I needed. Thanks very much
0
 
CodeCruiserCommented:
Glad to help :-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.