Write a String Value to 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 writes a value to the registry under given registry hive, subkey, and value name. If the subkey does not exist is is created. See demo in comments for usage.

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

Declarations:

Code: