在登记处存储登录名,密码和服务器名称 [英] storing login, password and server name in the registry

查看:52
本文介绍了在登记处存储登录名,密码和服务器名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想为我的用户创建一个表单来输入登录信息。这个

信息应该存储在某处,最好的方式我猜是

注册表。然后,如果用户稍后尝试在同一台机器上登录,

表格将自动从注册表中填写。


有可能吗?我怎样才能做到这一点 ?我不知道如何访问

注册表?


Thx

Hi,
I''d like to create a form for my user to enter login information. This
information should be stored somewhere, best way I guess is the
registry. Then if a user attempt to login on the same machine later on,
the form will be filled in automatically from the registry.

Is it possible ? How can I do that ? I don''t know how to access the
registry ?

Thx

推荐答案

Sam,


是的,这很容易实现,但强烈建议不要这样做。


最多容易"在我的意见中,最好的方法是使用主要的

命名空间
http://msdn.microsoft.com/library/de...yprincipal.asp


永远不要将用户密码存储在您的注册表中,如果您不能执行上述操作而不是

您可以获得用户


Environment.username


我希望这会有所帮助,


Cor
Sam,

Yes this is easily posible but strongly recomended not to do.

The most "easy" and in my opinio best way to do this is to use the principal
namespace
http://msdn.microsoft.com/library/de...yprincipal.asp

Never store user passwords in your registry, if you cannot do the above than
you can get the user with

Environment.username

I hope this helps,

Cor


我的错误,我不打算存储密码。但是我打算将
存储其他信息,所以我知道我可以用

Environment.username获取用户名,但是如何将我的txtboxes值存储在

注册表?


thx

my mistake, I do NOT intend to store the password. However I intend to
store other information, so I understand I can get the username with
Environment.username, but then how do I store my txtboxes values in the
registry ?

thx


Sam,


使用这个类非常简单。
http://msdn.microsoft.com/library/de...ClassTopic.asp


我希望这会有所帮助,


cor
Sam,

Very very simple by using this class.
http://msdn.microsoft.com/library/de...ClassTopic.asp

I hope this helps,

cor


这篇关于在登记处存储登录名,密码和服务器名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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