How to change the my.Settings?

How to change the my.Settings?

Postby Zero-G. » Wed 12 Dec 2007 16:01

Hey

I saw, that the DataSet Wizzard can change the My.Settings, where the connections String is saved in.
How can I do this to? (Because the Connection String is an Application Setting and not a User Setting.
Is there a VB.NET Sample you can provide me?

THX
Zero-G.
 
Posts: 390
Joined: Sat 09 Dec 2006 12:20

Postby Serious » Wed 12 Dec 2007 16:47

In WinForms designer focus MySqlConnection component and select "ConnectionString..." action. "MySqlConnection Editor" dialog will popup, there is a "Edit application settings" button, it allows to add connection to application settings. Under hood it edits Settings.settings file (which affects Settings.Designer.vb autogenerated file) and app.config file. You can edit setting scope in the Settings.settings file.

Was this information helpful?
Serious
 

Postby Zero-G. » Thu 13 Dec 2007 08:00

Hey

THX for your reply, but it was not really as helpful, as I thought.
What I want to do is, to give the user the chance to change the settings himself. - So I have to be able to change the Application based Connection String in the released version. - Not only when I am in the IDE.

THX
Zero-G.
 
Posts: 390
Joined: Sat 09 Dec 2006 12:20

Postby Serious » Thu 13 Dec 2007 09:07

MyDirect .NET does not provide such functionality because it is not related to data access. Refer to another resource to know how to change settings at runtime. Maybe this MSDN article will be useful for you.
Serious
 


Return to dotConnect for MySQL