Summary


Visual Studio provides many ways to store and use application configuration and resource information. Some of the most useful of these include environment variables, the Registry, configuration files, and resource files. The My namespace and the Application object make working with some of these easier.

Store configuration information that may change relatively quickly in configuration files. Store resources that determine the application’s appearance in resource files. If you will distribute the application in multiple languages, use localized resource files to manage the different languages. If necessary, you can change the data stored in configuration and resource files and redistribute them to your users without rebuilding the entire application.

You can store small pieces of information between program runs in the System Registry. Use databases, XML files, and other files to store larger amounts of data.

Using all of these techniques, you can make your application easily configurable. You can satisfy the needs of different kinds of users and customize the application without recompiling it.

This chapter explains ways that a program can save configuration and resource information using tools such as the Registry, environment variables, and resource files. Generally, these kinds of data are of relatively limited size. If an application needs to store larger amounts of data, it generally uses a database or file.

Chapter 28 explains classes that a Visual Basic application can use to work with stream data in general, and files in particular. Using streams attached to files, a program can read and write large amounts of data without cluttering up the Registry, environment variables, or resource files.




Visual Basic 2005 with  .NET 3.0 Programmer's Reference
Visual Basic 2005 with .NET 3.0 Programmer's Reference
ISBN: 470137053
EAN: N/A
Year: 2007
Pages: 417

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net