Solved

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

Posted on 2011-09-08
4
171 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expando 4 46
Opening and Closing Connections and Data Adapters 10 42
How to remove double quotes from a string in VB.Net 5 38
Help with LINQ and XML 10 26
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now