Udostępnij za pośrednictwem


Registry Access for Visual Basic 6.0 Users

Techniques for accessing the registry in Visual Basic 2008 differ from those used in Visual Basic 6.0.

Conceptual Differences

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.

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 2008, Setup and Deployment Projects provide full support for working with the registry during installation. For more information, see Deployment and the Registry.

See Also

Tasks

Troubleshooting: Manipulating the Registry

Concepts

Common Registry Tasks

Reading from and Writing to the Registry Using My

Reading from and Writing to the Registry Using the Microsoft.Win32 Namespace

Security and the Registry

Reference

Registry

My.Computer.Registry Object

Other Resources

Walkthrough: Creating a Registry Key and Changing Its Values