Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Techniques for accessing the registry in Visual Basic 2008 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 2008 supplies the My.Computer.Registry object, which provides access to registry keys. For more information, see Reading from and Writing to the Registry Using My.
In addition, complete access to the registry is provided by means of the Registry class in the .NET Framework.
Note
In Visual Basic 2008, the GetSetting and SaveSetting functions are still supported for limited registry access. For more information, see Registry Summary.
In Visual Basic 6.0, files can be marked for registration during installation by manually editing the Setup.lst file.
In Visual Basic 2008, Setup and Deployment Projects provide full support for working with the registry during installation. For more information, see Deployment and the Registry.
Troubleshooting: Manipulating the Registry
Reading from and Writing to the Registry Using My
Reading from and Writing to the Registry Using the Microsoft.Win32 Namespace
Walkthrough: Creating a Registry Key and Changing Its Values