阅读注册表 [英] Read Registry

查看:111
本文介绍了阅读注册表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我有一个问题,我找不到解决办法....所以当我使用它时,我想这样做:

RegistryKey masterKey = Registry.LocalMachine.CreateSubKey 
   ("SOFTWARE\\Test\\Preferences");
if (masterKey == null)



注册表项将显示为标签...

所以我想要的是一个函数,它将读取一个或多个特定注册表项的值并在标签上显示它

谢谢

解决方案

首先,读取注册表值,然后将其分配给标签的文本属性.. blockquote>

首先,读取注册表值,然后将其分配给标签的text属性.

我现在在Google上搜索了2天,没有任何用处...


好,我在这里找到了我的问题的答案:

http://www.joejoe.org/forum/index.php?showtopic=16814


Hi guys, i have a question and i cant find a solution....So i want that when i use this :

RegistryKey masterKey = Registry.LocalMachine.CreateSubKey 
   ("SOFTWARE\\Test\\Preferences");
if (masterKey == null)



The registry key would be shown as label...

So what i want is a function that will read a value of one or more specific registry keys and show it on labels

Thanks

解决方案

First, read the registry value, then assign it to the text property of the label.


First, read the registry value, then assign it to the text property of the label.

I am searching google 2 days now and nothing useful...


OK i found an answer to my problem here :

http://www.joejoe.org/forum/index.php?showtopic=16814


这篇关于阅读注册表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆