标签: c# configuration app-config
我有一个C#windows应用程序。 在应用程序中,我想在文本框中显示我的配置文件内容。 我可以阅读配置文件。但我不知道如何在文本框中显示它。 我怎么能这样做?
答案 0 :(得分:3)
你的意思是这样的?:
textBox1.Text = File.ReadAllText(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile);