常用的两种方法
方法一:
using Microsoft.Win32;
RegistryKey keyCom = Registry.LocalMachine.OpenSubKey(Hardware//DeviceMap//SerialComm);
if (keyCom != null)
{
string[] sSubKeys = keyCom.GetValueNames();
foreach (string sName in sSubKeys)
{
string sValue = (string)keyCom.GetValue(sName);
this.textBox1.
1