Reputation: 105
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
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