91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

Winform實現登錄窗體中記住密碼的功能,模仿QQ登錄記住密碼的實現 

用戶名輸入框我們采用下拉列表框ComboBox 
密碼框我們采用textBox,并設置為密碼框

設置textBox輸入時不顯示明文,需要將useSystemPasswordChar改為true,然后multiline設置為false,然后重新生成一下就可以了,因為textbox為顯示為密碼字符是當textbox為單行編輯的時候,useSystemPasswordchar的設置才會生效,然后我們還可以通過passwordChar設置textbox中以哪種形式來顯示你輸入的字符,默認是”*”。

記住密碼功能的常見實現方法有三種: 
方法一:寫入本地數據庫 
方法二:寫入文件——txt、xml、ini 
方法三:注冊表 


資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.IO;
using?System.Linq;
using?System.Runtime.Serialization.Formatters.Binary;
using?System.Text;
using?System.Threading.Tasks;
using?System.Windows.Forms;

namespace?Winform登陸記住密碼
{
????public?partial?class?frm_Login?:?Form
????{
????????public?frm_Login()
????????{
????????????InitializeComponent();
????????}
????????Dictionary?users?=?new?Dictionary();
????????private?void?simpleButton1_Click(object?sender?EventArgs?e)
????????{
????????????string?username?=?this.cbo_UserName?.Text.Trim();
????????????string?password?=?this.txt_Password.Text.Trim();

????????????User?user?=?new?User();
????????????FileStr

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-08-15?21:38??Winform登陸記住密碼\
?????目錄???????????0??2017-08-15?21:38??Winform登陸記住密碼\.vs\
?????目錄???????????0??2017-08-15?21:38??Winform登陸記住密碼\.vs\Winform登陸記住密碼\
?????目錄???????????0??2017-08-15?21:38??Winform登陸記住密碼\.vs\Winform登陸記住密碼\v14\
?????文件???????56320??2017-08-19?16:06??Winform登陸記住密碼\.vs\Winform登陸記住密碼\v14\.suo
?????目錄???????????0??2017-08-19?16:04??Winform登陸記住密碼\Winform登陸記住密碼\
?????文件????????1042??2017-08-15?21:38??Winform登陸記住密碼\Winform登陸記住密碼.sln
?????文件?????????189??2017-08-19?16:00??Winform登陸記住密碼\Winform登陸記住密碼\App.config
?????目錄???????????0??2017-08-15?21:44??Winform登陸記住密碼\Winform登陸記住密碼\bin\
?????目錄???????????0??2017-08-19?15:44??Winform登陸記住密碼\Winform登陸記住密碼\bin\Debug\
?????文件????????1699??2017-08-19?16:05??Winform登陸記住密碼\Winform登陸記住密碼\bin\Debug\data.bin
?????目錄???????????0??2017-08-19?15:25??Winform登陸記住密碼\Winform登陸記住密碼\bin\Debug\de\
?????文件?????3489272??2017-06-28?11:01??Winform登陸記住密碼\Winform登陸記住密碼\bin\Debug\DevExpress.Data.v14.1.dll
?????文件?????1061142??2017-06-28?11:01??Winform登陸記住密碼\Winform登陸記住密碼\bin\Debug\DevExpress.Data.v14.1.xml
?????文件?????2534392??2017-06-28?11:01??Winform登陸記住密碼\Winform登陸記住密碼\bin\Debug\DevExpress.Printing.v14.1.Core.dll
?????文件??????901244??2017-06-28?11:01??Winform登陸記住密碼\Winform登陸記住密碼\bin\Debug\DevExpress.Printing.v14.1.Core.xml
?????文件???????74744??2017-06-28?11:01??Winform登陸記住密碼\Winform登陸記住密碼\bin\Debug\DevExpress.Sparkline.v14.1.Core.dll
?????文件???????21144??2017-06-28?11:01??Winform登陸記住密碼\Winform登陸記住密碼\bin\Debug\DevExpress.Sparkline.v14.1.Core.xml
?????文件?????5187576??2017-06-28?11:01??Winform登陸記住密碼\Winform登陸記住密碼\bin\Debug\DevExpress.Utils.v14.1.dll
?????文件??????558505??2017-06-28?11:01??Winform登陸記住密碼\Winform登陸記住密碼\bin\Debug\DevExpress.Utils.v14.1.xml
?????文件?????3495928??2017-06-28?11:02??Winform登陸記住密碼\Winform登陸記住密碼\bin\Debug\DevExpress.XtraEditors.v14.1.dll
?????文件?????1562508??2017-06-28?11:02??Winform登陸記住密碼\Winform登陸記住密碼\bin\Debug\DevExpress.XtraEditors.v14.1.xml
?????文件??????171000??2017-06-28?11:01??Winform登陸記住密碼\Winform登陸記住密碼\bin\Debug\de\DevExpress.Data.v14.1.resources.dll
?????文件???????12792??2017-06-28?11:01??Winform登陸記住密碼\Winform登陸記住密碼\bin\Debug\de\DevExpress.Printing.v14.1.Core.resources.dll
?????文件???????11768??2017-06-28?11:01??Winform登陸記住密碼\Winform登陸記住密碼\bin\Debug\de\DevExpress.Sparkline.v14.1.Core.resources.dll
?????文件???????25592??2017-06-28?11:01??Winform登陸記住密碼\Winform登陸記住密碼\bin\Debug\de\DevExpress.Utils.v14.1.resources.dll
?????文件???????61944??2017-06-28?11:02??Winform登陸記住密碼\Winform登陸記住密碼\bin\Debug\de\DevExpress.XtraEditors.v14.1.resources.dll
?????目錄???????????0??2017-08-19?15:25??Winform登陸記住密碼\Winform登陸記住密碼\bin\Debug\es\
?????文件??????174584??2017-06-28?11:01??Winform登陸記住密碼\Winform登陸記住密碼\bin\Debug\es\DevExpress.Data.v14.1.resources.dll
?????文件???????13304??2017-06-28?11:01??Winform登陸記住密碼\Winform登陸記住密碼\bin\Debug\es\DevExpress.Printing.v14.1.Core.resources.dll
?????文件???????12280??2017-06-28?11:01??Winform登陸記住密碼\Winform登陸記住密碼\bin\Debug\es\DevExpress.Sparkline.v14.1.Core.resources.dll
............此處省略59個文件信息

評論

共有 條評論