Read a Value from the Registry (VB.NET)

Category:
C#, VB.NET, ASP.NET
Type:
Snippets
Difficulty:
Beginning
Author:
Intelligent Solutions Inc.

Version Compatibility: Visual Basic.NET

More information:
This function accepts a root key, a subkey, and the name part of a name/value registry value, and returns the value. You can also get error information if the call fails. See the code's comments for a demo on how to use the function.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: