![]() Edit your App.Config to look like the next code listing: Īll I included here was the appSettings section. You have to edit the App.Config file to include your desired settings. Now where do the Settings I mentioned come in? This simply tells the application that it expects. If you were to open the App.Config file inside Visual Studio it will look like the following: ĭoesn’t look like much. ![]() You can store all your Database connection strings, Resource locations (et al.) inside it. App.ConfigĪs said, any Windows Forms application includes this file as part of the solution – so create a VB.NET Windows Forms application quickly. Every Windows Forms application includes a file called app.config, which I will talk about now. This means that every setting stored inside a config file can easily be read if you understand the very basics of XML. This eliminates the need to create separate files in order to store your settings.Ĭonfiguration files are in XML format. ![]() The benefit of using a Config file is that it is automatically part of your application. These configuration settings could be anything such as a database connection, common strings, or objects that will be used throughout your entire application. What are Configuration Files?Īs the name implies, a Configuration file allows you to store configuration settings. Today I will show you how to store, modify and retrieve information from a Configuration file. It is senseless saving a couple of strings into a database it is also senseless storing huge amounts of data into anything other than a database. ![]() It all depends on the need of the user, and obviously the amount of data that needs storing. Common places in which developers can store data are the following: Net developers are quite spoilt for choice when it comes to storing little pieces of information. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |