Export (0) Print
Expand All

Reading from and Writing to the Registry

When programming in Visual Basic .NET, you can choose to access the registry via either the functions provided by Visual Basic .NET 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.

In This Section

Reading from and Writing to the Registry Using the Microsoft.Win32 Namespace
Explains how to use the Registry and RegistryKey classes in the Microsoft.Win32 namespace of the .NET Framework to read from and write to a registry key.
Reading from and Writing to the Registry Using Visual Basic Run-Time Functions
Explains how to use the Visual Basic .NET functions, DeleteSetting, GetSetting, GetAllSettings, and SaveSetting, to access the registry.

Related Sections

Registry Access Changes in Visual Basic .NET
Provides an explanation of differences between registry access in Visual Basic 6.0 and Visual Basic .NET.
Registry Class
Presents an overview of the Registry class along with links to individual keys and members.
Show:
© 2014 Microsoft