//************************************** // Name: Read Registry // Description:Shows how to Read from the Registry using VB.net // By: Zaphod (from psc cd) // // // Inputs:None // // Returns:None // //Assumes:None // //Side Effects:None //************************************** Dim objKey As RegistryKey objKey = Registry.LocalMachine.OpenSubKey _ ("SYSTEM\CurrentControlSet\Control\ComputerName _ \ComputerName" , False) MsgBox(Convert.ToString(objKey.GetValue _ ("ComputerName", "")))