Prabhagaran P
Prabhagaran P

Reputation: 105

How to display app.config value to textbox?


I have path name in App Setting Value. Now I want to display the path name on an text box in c#.but i dont have idea to do this. So please Help me.Thank You.

Upvotes: 2

Views: 1416

Answers (1)

Yeldar Kurmangaliyev
Yeldar Kurmangaliyev

Reputation: 34234

You can use System.Configuration.ConfigurationManager and its AppSettings:

textBox1.Text = ConfigurationManager.AppSettings["Path"];

Change key from "Path" according to your configuration file.

Upvotes: 1

Related Questions