I'm having trouble understanding how this works.Under my Project properties I select Settings and define the ones I need.Things like:
DefaultSaveToLocation (As String)
DefaultFileName (As String)
NoOfTimesAppStarted (As Integer)
and so on....
Under Form_Load I check to see if NoOfTimesAppStarted is 1.If so,display some configuration options,close the DialogBox and show Form1.Also,increase NoOfTimesAppStarted + 1.
Then My.Settings.Save().
This works,as the next time I start it,it skips the DialogBox and goes straigth to Form1.But under Settings,the value of NoOfTimesAppStarted is still 1.
Also,I can't seem to set the ApplicationPath.I use AppPath =My.Application.Info.DirectoryPath to get the path and save it to My.Settings.DefaultSaveToLocation,but no deal!
vb.net Code:
AppPath = My.Application.Info.DirectoryPath My.Settings.DefaultSaveToLocation = AppPath My.Settings.Save()
What am I doing wrong?
