在登记处存储登录名,密码和服务器名称

编程入门 行业动态 更新时间:2024-10-27 00:24:24
本文介绍了在登记处存储登录名,密码和服务器名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想为我的用户创建一个表单来输入登录信息。这个 信息应该存储在某处,最好的方式我猜是 注册表。然后,如果用户稍后尝试在同一台机器上登录, 表格将自动从注册表中填写。 有可能吗?我怎样才能做到这一点 ?我不知道如何访问 注册表? 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, 是的,这很容易实现,但强烈建议不要这样做。 最多容易"在我的意见中,最好的方法是使用主要的 命名空间 msdn.microsoft/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 msdn.microsoft/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, 使用这个类非常简单。 msdn.microsoft/library/de...ClassTopic.asp 我希望这会有所帮助, cor Sam, Very very simple by using this class. msdn.microsoft/library/de...ClassTopic.asp I hope this helps, cor

更多推荐

在登记处存储登录名,密码和服务器名称

本文发布于:2023-11-06 04:48:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1562747.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:登记处   登录名   名称   密码   服务器

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!