C#如何正确读写Vista下的注册表!!!
解决方案 »
- 最小化时完美的隐藏
- vs2003的水晶报表 为什么在报表中显示的是正确的数据 可是当导出时 显示的数据却不是报表中显示的数据
- 一段代码的问题
- 线程池 Metex被放弃的问题
- C#编写的Window Service多线程出项的致命问题,望高手解答
- 进度条的问题
- Spliter将显示区分成两部分后,本来应该显示在右边的被覆盖
- [请教]查看 .dll文件的工具
- 在向RichTextBox中粘贴文本内容时,如何把该文本的有字体,颜色等信息去除,只留下该文本的字符串?
- 在C#中,连接dbf数据表的连接字符串怎么写
- asp.net中Update数据库时出错,请帮帮忙
- 请大家推荐一个学习c#的经典书,最好是csdn网上书店可以买到的,谢谢。
一个小例子:
RegistryKey key = Registry.LocalMachine;
key = key.OpenSubKey(@"SYSTEM\ControlSet001\Control\Session Manager\Environment", true);
key.SetValue("AutomatedTestPath", "c:\windows\temp"); //set the value of AutomatedTestPath
object keyval = new object();
keyval= key.GetValue("AutomatedTestPath"); // get the value of AutomatedTestPath