窗口注册表 [英] Window Registry

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

问题描述

大家好


如果我只想将我的应用程序的屏幕位置和大小存储在

Windows注册表中,我应该存储哪些密钥信息?我们非常感谢您提供示例代码

。谢谢


问候,


Sam

Hi all

If I only want to store screen location and size of my application in
Windows Registry, which of the keys should I store this info? A sample code
is greatly appreciated. Thank you

Regards,

Sam

推荐答案

"萨姆和QUOT; < qd*@datawave.ca> schrieb:
"Sam" <qd*@datawave.ca> schrieb:
如果我只想在Windows注册表中存储我的应用程序的屏幕位置和大小,我应该将这些信息存储在哪个键中?
If I only want to store screen location and size of my application in
Windows Registry, which of the keys should I store this info?




您可以使用''Microsoft.Win32.Registry''将数据存储在注册表中。有关

的更多信息,请阅读本课程的文档。如果您对此主题有任何进一步的问题,请随时在这里发布。


-

MS Herfried K .Wagner

MVP< URL:http://dotnet.mvps.org/>

VB< URL:http://dotnet.mvps.org/ dotnet / faqs />



You can use ''Microsoft.Win32.Registry'' to store data in the registry. For
more information, read the documentation of this class. If you have any
further questions on this topic, feel free to post them here.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


Hi Herfried


感谢您的回复。我觉得我的问题不是那么清楚,而且我很困惑,所以让我重新说一下。当我在我的Window上运行regedit运行

命令时,我看到了5个主要组:


1. HKey_Classes_Root

2. HKey_Current_User

3. HKey_Local_Machine

4. HKey_Users

5. HKey_Current_Config


现在如果我使用课程注册表和RegistryKey访问和存储我的

应用程序特定的,上面应该存储我的应用程序的

大小和位置?这是一个约定吗?我是新来的这个


问候,


Sam

" Herfried K. Wagner [MVP ]" <喜*************** @ gmx.at>在消息中写道

新闻:%2 *************** @ TK2MSFTNGP15.phx.gbl ...
Hi Herfried

Thanks for the response. I think my question wasn''t that clear and I''m a
little confused, so let me rephrase it. when I ran regedit on my Window run
command, I saw 5 major groups:

1. HKey_Classes_Root
2. HKey_Current_User
3. HKey_Local_Machine
4. HKey_Users
5. HKey_Current_Config

Now if I use classes Registry and RegistryKey to access and store my
application specific, which of the above should I store my application''s
size and location? Is there a convention for this? I''m new to this

Regards,

Sam
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
" Sam" ; < qd*@datawave.ca> schrieb:
"Sam" <qd*@datawave.ca> schrieb:
如果我只想在Windows注册表中存储我的应用程序的屏幕位置和大小,我应该将这些信息存储在哪个键中?
If I only want to store screen location and size of my application in
Windows Registry, which of the keys should I store this info?



您可以使用''Microsoft.Win32.Registry''将数据存储在注册表中。有关更多信息,请阅读本课程的文档。如果您对此主题有任何进一步的问题,请随时在此发布。

- MS Herfried K. Wagner
MVP< URL:http ://dotnet.mvps.org/>
VB< URL:http://dotnet.mvps.org/dotnet/faqs/>



You can use ''Microsoft.Win32.Registry'' to store data in the registry. For
more information, read the documentation of this class. If you have any
further questions on this topic, feel free to post them here.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>



Sam,


Dim Reg As RegistryKey

Reg = Registry.CurrentUser.CreateSubKey(" Software\Sam \Wh atever" )

Reg.SetValue(" Width",pW)

http://msdn.microsoft.com/library/de...toregistry.asp


我希望这有帮助吗?


Cor
Sam,

Dim Reg As RegistryKey
Reg = Registry.CurrentUser.CreateSubKey("Software\Sam\Wh atever")
Reg.SetValue("Width", pW)

http://msdn.microsoft.com/library/de...toregistry.asp

I hope this helps?

Cor


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

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