I tried to do this
The title says: Easily Save and Retrieve Application and User Settings in VB.NET or C# Apps!
Shouldn't be so hard then...
First instruction:Go to your project properties, then click the settings tab on the left.
imageThey show this illustration for those who don't get it:
Apparently I don't because what I see is this:
I can add a component:settings file, and than I see this:
If I try to run it in some code:
Imports System.Configuration
Imports System.Reflection
Public Class Form1
Sub New()
Dim test As Integer = My.Settings.Subject
' This call is required by the designer.
InitializeComponent()
End Sub
End Class
I get the error:"settings is not a member of [projectname].my"
Why does this work the way it doesn't work?
And more importantly: How can I get to achieve what the title of this question states?
As always; yours truly: Jhonny Q
Update 1!
did a repair of visual basic.
Now I can get to the setting sections and more goodies on the
left side of the properties page.
Still get the error though.
Update 2! After intensive and extensive searching the web, I found a hint to a possible solution:
Deleting the <system.diagnostics> section from the app.config file.
Did-That: next error complained about configuration in [projectname].dll.config line 8
I deleted that section in dll.config as wel.
Now the compilation runs without errors.(so far...)
But I don't want to do this each time I start a new project.
Something is wrong somewhere.
Any clues?