Click here to Skip to main content
15,885,936 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all
I am trying to create a project and I want to design a Setting form to let the user to enter the connection string in a text box and save it in the App.config file in the first time of the application life.
Can you help me please?
Posted
Updated 9-May-15 22:45pm
v2

Try these links -
Saving Connection Strings to app.config[^]
Configuring a Connection String in the App.Config File During Runtime in C#[^]

It might be more useful to save the connection string during installation rather than the first.
 
Share this answer
 
v2
Comments
fadi77_net 10-May-15 16:01pm    
I tried both samples, they were working properly, and I checked the application configuration file during the run time and I found it saved my connection string settings, but when I close my application it deleted all settings that had been added during the run time.
can you help me please?
 
Share this answer
 
Comments
fadi77_net 10-May-15 16:02pm    
I tried the sample, it was working properly, and I checked the application configuration file during the run time and I found it saved my connection string settings, but when I close my application it deleted all settings that had been added during the run time.
can you help me please?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900