README.md

December 4, 2022 ยท View on GitHub

Read Registry

Description

Shows how to Read from the Registry using VB.net

More Info

Submitted On
ByZaphod
LevelIntermediate
User Rating3.8 (19 globes from 5 users)
CompatibilityVB.NET
CategoryData Structures
World.Net (C#, VB.net)
Archive File

Source Code

Dim objKey As RegistryKey
 objKey = Registry.LocalMachine.OpenSubKey _
 ("SYSTEM\CurrentControlSet\Control\ComputerName _
 \ComputerName" , False)
 MsgBox(Convert.ToString(objKey.GetValue _
    ("ComputerName", "")))