|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Registry Access for Visual Basic 6.0 Users
Techniques for accessing the registry in Visual Basic 2005 differ from those used in Visual Basic 6.0.
In Visual Basic 6.0, you can access the registry using the GetSetting or SaveSetting functions, which provide access to a limited set of registry keys. To access other registry keys, calls to the Windows API are required.
Visual Basic 2005 supplies the My.Computer.Registry object, which provides access to registry keys. For more information, see.
In addition, complete access to the registry is provided by means of the Registry class in the .NET Framework.
In Visual Basic 2005, the GetSetting and SaveSetting functions are still supported for limited registry access. For more information, see.
Registry Access and Deployment
In Visual Basic 6.0, files can be marked for registration during installation by manually editing the Setup.lst file.
In Visual Basic 2005, Setup and Deployment Projects provide full support for working with the registry during installation. For more information, see.