This documentation is archived and is not being maintained.

Reading from and Writing to the Registry (Visual Basic)

Lists task and conceptual topics associated with the registry.

When programming in Visual Basic 2005, you can choose to access the registry by means of either the functions provided by Visual Basic 2005 or the registry classes of the .NET Framework. The registry hosts information from the operating system as well as information from applications hosted on the machine. Working with the registry may compromise security by allowing inappropriate access to system resources or protected information.

Common Registry Tasks (Visual Basic)

Lists tasks associated with the registry, such as determining or setting the value of a registry key.

Reading from and Writing to the Registry Using My (Visual Basic)

Explains how to use the My.Computer.Registry object to access the registry.

Reading from and Writing to the Registry Using the Microsoft.Win32 Namespace (Visual Basic)

Explains how to use the Visual Basic 2005 functions, DeleteSetting, GetSetting, GetAllSettings, and SaveSetting, to access the registry.

Security and the Registry (Visual Basic)

Discusses security issues involving the registry.

Troubleshooting: Manipulating the Registry (Visual Basic)

Lists common issues encountered when accessing the registry and how to address them.


Lists and explains members of the My.Computer.Registry object.


Presents an overview of the Registry class, along with links to individual keys and members.