各位高手以下是我写的一个注册表文件Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\TAW\BSE]
"DSN"="TAWReports"
"User"="TAW1"
"Password"="taw1.1"
"Server"="dbserver"
"IP"=""请问如何使用RegistryKey读取出来啊,谢谢了!
"DSN"="TAWReports"
"User"="TAW1"
"Password"="taw1.1"
"Server"="dbserver"
"IP"=""请问如何使用RegistryKey读取出来啊,谢谢了!
解决方案 »
- c# windowsFormsApplication 无参数函数 drawImage
- 请问怎么删除自己的资源
- 高手帮我看看这个文件下载问题,郁闷了好几天了,谢谢大家
- 散分,又发现.net的一个bug,浪费了我2天时间
- 对于C# 构造函数的问题?
- 如何自定义公式计算,含变量
- 高手请进!!!C# 如果何实现结构体数组?
- 怎么把jpg图像变成ico
- 如何将byte [] 数组写入Stream中
- C#中修改一个XML文件的其中一个Element的问题。(等待中......)
- 如何在DataGridView中添加一行CheckBox?(winForm)
- Windows服 -> Timer -> 怎么设置在某一时刻触发事件 ?
RegistryKey SoftwareKey=Registry.LocalMachine.OpenSubKey("Software",true);
RegistryKey MovecontKey=SoftwareKey.OpenSubKey("TAW");
RegistryKey SelfPlaceKey=MovecontKey.OpenSubKey("TAW");
string s=SelfPlaceKey.GetValue("DSN");
string d=SelfPlaceKey.GetValue("User");
string f=SelfPlaceKey.GetValue("Password");
string m=SelfPlaceKey.GetValue("Server");
string m=SelfPlaceKey.GetValue("IP");参考下!
RegistryKey SelfPlaceKey=MovecontKey.OpenSubKey("BSE]");
在 Book1.MyClass.Main(String[] args) 位置 C:\Documents and Settings\Administr
ator\桌面\Book1\Book1\MyClass.cs:行号 16
请按任意键继续. . .
RegistryKey SoftwareKey = Registry.CurrentUser.OpenSubKey("Software", true);
RegistryKey MovecontKey=SoftwareKey.OpenSubKey("TAW");
RegistryKey SelfPlaceKey=MovecontKey.OpenSubKey("BSE]");
string s=SelfPlaceKey.GetValue("DSN").ToString();
string d=SelfPlaceKey.GetValue("User").ToString();
string f=SelfPlaceKey.GetValue("Password").ToString();
string m=SelfPlaceKey.GetValue("Server").ToString();
string m=SelfPlaceKey.GetValue("IP").ToString();
这样应该行了
这个就是BSE,我多写了个括号!你删了,不然又要出错了!