Reputation: 822
I am creating a program which launches a game server. I have combobox in which the user can enter the ip, map, etc, of the game. How can I save what they have entered so that the next time they are already there so they don't have to re-enter them.
Upvotes: 2
Views: 2143
Reputation: 5465
You can also bind the settings to the control using the Properties Window.
Right click your project in the Solution Explorer and choose Properties. Go to Settings and create a new String setting. Then click on your ComboBox and open up the Application Settings > PropertyBinding section from the Properties Window. From there you can bind the control's text property to the String setting you just created.
Upvotes: 2
Reputation: 3145
Use Visual Studio's Settings Designer, Right click on your project then properties, navigate to the settings section, from there, you can add anything you want. then you can access your settings from code like so
My.Settings.nameOfSettingsEntry = value
My.Settings.Save()
you'll find more details and screenshots here,
Upvotes: 4