Ask Toptech4u: How To Add a Configuration File To Windows Forms Application

Ask Toptech4u: How To Add a Configuration File To Windows Forms application
Ask Toptech4u: How To Add a Configuration File To Windows Forms application
You’ll notice that it’s already set to App.config for you. Just hit the Open button.
If you look in the Solution Explorer, you will see that the config file is in your project:
Ask Toptech4u: How To Add a Configuration File To Windows Forms application
Ask Toptech4u: How To Add a Configuration File To Windows Forms application
Now build your application, and take a look in the \bin\debug\ folder. You’ll see that the configuration file has automatically been generated and named correctly for your executable:
Ask Toptech4u: How To Add a Configuration File To Windows Forms application
If you change the name of the outputted file, Visual Studio is smart enough to generate the new filename correctly.
Enjoy Configuring!

0 comments:

Post a Comment