dukeofawesome
Member
Hi,
Very much a newbie so please be paytient. I am using VB.Net 2013 for Windows Desktop.
I am tryng to save the connection string to the Access database from the user log on form to the My.Settings property. The actual setting is call NewCnnStr and is a User setting not an Application setting. My code is below:
When I check the App.config file in the project root, no chnage. I compiled the project and ran it to see if it would save it in the user\<AppDataPath>, still no. I get no error and have stepped through the code and everything is as it should be from my understanding.
Any help would be most appreciated.
Thanks...
Duke
Very much a newbie so please be paytient. I am using VB.Net 2013 for Windows Desktop.
I am tryng to save the connection string to the Access database from the user log on form to the My.Settings property. The actual setting is call NewCnnStr and is a User setting not an Application setting. My code is below:
VB.NET:
CnnStr = myFileDlog.FileName
My.Settings.NewCnnStr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & CnnStr
My.Settings.Upgrade()
My.Settings.Save()
My.Settings.Reload()
When I check the App.config file in the project root, no chnage. I compiled the project and ran it to see if it would save it in the user\<AppDataPath>, still no. I get no error and have stepped through the code and everything is as it should be from my understanding.
Any help would be most appreciated.
Thanks...
Duke