Solved

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

Posted on 2011-09-08
4
173 Views
Last Modified: 2012-06-27
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
0
Comment
Question by:murbro
  • 2
4 Comments
 
LVL 6

Expert Comment

by:effes
ID: 36505948
Hi,

did you call
My.Settings.Save
after assigning the new value?
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 36505970
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
 

Author Closing Comment

by:murbro
ID: 36506012
Just the answer I needed. Thanks very much
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 36506311
Glad to help :-)
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question