Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2011-09-08
4
Medium Priority
?
180 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:Murray Brown
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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:Murray Brown
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
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 …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

609 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