tdignan87
Well-known member
- Joined
- Jul 8, 2019
- Messages
- 95
- Programming Experience
- Beginner
Hi i am trying to move contents of the app.config file to textbox.
I have tried the following code but its not working on my form load event
The name of the config is indeed DATALOGIC_IP
I have tried the following code but its not working on my form load event
The name of the config is indeed DATALOGIC_IP
C#:
string DatalogicIP = ConfigurationManager.AppSettings["DATALOGIC_IP"];
string DatalogicPort = ConfigurationManager.AppSettings["DATALOGIC_PORT"];
string DBPath = ConfigurationManager.AppSettings["DB_PATH"];
string DBPort = ConfigurationManager.AppSettings["DB_PORT"];
string DBUserName = ConfigurationManager.AppSettings["DB_USER"];
string DBPassword = ConfigurationManager.AppSettings["DB_PASSWORD"];
IPAddressTxtBox.Text = DatalogicIP;