Answer the question
In order to leave comments, you need to log in
How to make remembering server name and database name?
I'm writing a client application that should connect to a database when it starts up. I would like the user to enter the server name and the database name once. As I understand it, it should be stored in some kind of resource file.
Are there any examples describing such solutions?
Answer the question
In order to leave comments, you need to log in
Use an application configuration file.
ConfigurationManager.AppSettings
reading from app.config file
writing and reading to app.config file - C#
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question