string path = @"\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer";
RegistryKey key = Registry.CurrentUser.OpenSubKey(path,true);
但是注册表里有这个路径.. 怎么读取不到..
RegistryKey key = Registry.CurrentUser.OpenSubKey(path,true);
但是注册表里有这个路径.. 怎么读取不到..
解决方案 »
- C#导出excel时怎么去掉科学计算法
- .net 获取msn联系人列表
- 哪位大哥提示下,这条C#.NET路该怎样走啊?
- 发个跟技术没关系的帖子,大家来讨论下移动硬盘吧!!!!
- Xencode Postbuil 2007 Evaluation有人用过吗?求救
- 雪地跪求一解决方案
- Format8bppIndexed这个格式象素是怎么存放的?
- C# 反射调用 C++写的类库,在传递参数(比如 int 型)时,参数无效,或发生变化。请问为什么。该如何解决!?谢谢!
- Visual C#+SQL写的aspx程序问题
- WPF 如何获取当前域用户
- C#获取的本机ip打印出来时看不懂,怎么才能转换成看的懂的东西
- datagridview移植时而出问题
这样写多了个"\"
获取到key 之后你要获取keyvalue
_bottom = string.IsNullOrEmpty(rk.GetValue("margin_bottom").ToString()) ? "0" : rk.GetValue("margin_bottom").ToString();
这样没用,key路径不存在,我怎么去获取他的子项值嘛!但是这个路径在注册表里是存在的!
获取到key 之后你要获取keyvalue
_bottom = string.IsNullOrEmpty(rk.GetValue("NoLowDiskSpaceChecks").ToString()) ? "0" : rk.GetValue("margin_bottom").ToString();
怎么测试? 我是以administrator账户登录的,这应该有操作注册表的权限吧