I saw that you can also use a "Settings File" (Add new Item)to add your settings instead of the application settings.
But I can't seem to write any values to the file. Someone with experience with the "Settings1.settings"?
Thanks in advance ;)
Printable View
I saw that you can also use a "Settings File" (Add new Item)to add your settings instead of the application settings.
But I can't seem to write any values to the file. Someone with experience with the "Settings1.settings"?
Thanks in advance ;)
Just add a new setting in vb, and then in your code you can add something like this
Then you can load it later usingCode:Settings1.connectionstring = "some connectionstring"
Settings1.Save()
That is the most basic usageCode:TextBox.Text = Settings1.connectionstring
Thanks m8. Really helpfull. :thumb:
To write:
vb.net Code:
With Settings1.Default .NameOfString = "something" .Save End With
To read:
vb.net Code:
YourControl.Value = Settings1.Default.NameOfString