如何记住windows apliication VS 2008 C#中的用户名和密码 [英] How to remember username and password in windows apliication VS 2008 C#

查看:84
本文介绍了如何记住windows apliication VS 2008 C#中的用户名和密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为Windows移动设备开发了一个Windows应用程序(SmartDevice Project VS 2008 C#)。

在登录表单中,有一个记住我的复选框选项。



我的问题是如何记住Windows应用程序的用户名和密码。

是否有像win for win应用程序的cookie这样的概念。





请帮帮我。



谢谢

I have developed a windows application for windows mobile device (SmartDevice Project VS 2008 C#).
In a login form, there is a remember me checkbox option.

My question is how to remember username and password for the windows application.
Is there any concept like cookie for win application.


Please help me.

Thanks

推荐答案

1.Windows桌面应用程序没有cookie,cookie由网络浏览器管理。



2。在Windows应用程序的情况下,类似的解决方案是在当前用户设置中保存用户凭据。为了通过使用应用程序属性执行此操作,您必须在应用程序配置中添加两个用户名和密码的用户设置,然后在成功登录后保存用户输入。



注意:通过这种方式,还可以保存其他用户首选项(关于当前应用程序)(如当前文件夹,应用程序设置等)。



3.有关用户的详细信息设置见下篇文章: http://msdn.microsoft.com/en- us / library / aa730869(v = vs.80).aspx [ ^ ]
1.There is no cookies for windows desktop application, and cookies are managed by the web browsers.

2.The similar solution in the case of windows application is to save the user credentials in the current user settings. For doing this by using application properties you must add in the application configuration two user settings for user name and password, then after login successfully to save the user inputs.

NOTE: In this way also other user preferences (regarding the current application) could be saved (like current folder, application settings, etc).

3.For details about user settings see next article: http://msdn.microsoft.com/en-us/library/aa730869(v=vs.80).aspx[^]


这篇关于如何记住windows apliication VS 2008 C#中的用户名和密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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