資源簡介
新建winform,輸入用戶名,密碼,勾選記住密碼,下次輸入用戶名,密碼直接顯示。
代碼片段和文件信息
using?BookManagementSystem;
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.Windows.Forms;
namespace?記住密碼
{
????public?partial?class?Form1?:?Form
????{
????????List?users;?
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????string?loginName?=?this.comboBox2.Text.Trim();??//將下拉框的登錄名先保存在變量中??
????????????for?(int?i?=?0;?i?????????????{
????????????????if?(this.comboBox2.Items[i].ToString()?==?loginName)
????????????????{
????????????????????this.comboBox2.Items.RemoveAt(i);??//如果當前登錄用戶在下拉列表中已經存在,則將其移除??
????????????????????break;
????????????????}
????????????}
????????????for?(int?i?=?0;?i?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????157??2017-02-10?16:53??記住密碼\記住密碼\App.config
?????文件????????477??2017-02-10?16:57??記住密碼\記住密碼\bin\x86\Debug\userInfo.txt
?????文件??????13312??2017-02-10?16:54??記住密碼\記住密碼\bin\x86\Debug\記住密碼.exe
?????文件????????157??2017-02-10?16:53??記住密碼\記住密碼\bin\x86\Debug\記住密碼.exe.config
?????文件??????30208??2017-02-10?16:54??記住密碼\記住密碼\bin\x86\Debug\記住密碼.pdb
?????文件??????22712??2017-04-15?13:10??記住密碼\記住密碼\bin\x86\Debug\記住密碼.vshost.exe
?????文件????????157??2017-02-10?16:53??記住密碼\記住密碼\bin\x86\Debug\記住密碼.vshost.exe.config
?????文件????????490??2013-03-18?17:00??記住密碼\記住密碼\bin\x86\Debug\記住密碼.vshost.exe.manifest
?????文件???????6917??2017-02-10?16:53??記住密碼\記住密碼\Form1.cs
?????文件???????5078??2017-02-10?16:35??記住密碼\記住密碼\Form1.Designer.cs
?????文件???????5817??2017-02-10?16:35??記住密碼\記住密碼\Form1.resx
?????文件???????2096??2016-09-22?20:55??記住密碼\記住密碼\MyEncrypt.cs
?????文件???????1087??2017-02-10?16:53??記住密碼\記住密碼\obj\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件???????7027??2017-02-10?16:53??記住密碼\記住密碼\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件??????????0??2017-02-10?15:42??記住密碼\記住密碼\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
?????文件??????????0??2017-02-10?15:42??記住密碼\記住密碼\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
?????文件??????????0??2017-02-10?15:42??記住密碼\記住密碼\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
?????文件???????4608??2017-02-10?16:53??記住密碼\記住密碼\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
?????文件???????1077??2017-02-10?16:53??記住密碼\記住密碼\obj\Debug\記住密碼.csproj.FileListAbsolute.txt
?????文件????????847??2017-02-10?16:53??記住密碼\記住密碼\obj\Debug\記住密碼.csproj.GenerateResource.Cache
?????文件???????2211??2017-02-10?16:05??記住密碼\記住密碼\obj\Debug\記住密碼.csprojResolveAssemblyReference.cache
?????文件??????13312??2017-02-10?16:53??記住密碼\記住密碼\obj\Debug\記住密碼.exe
?????文件????????180??2017-02-10?16:53??記住密碼\記住密碼\obj\Debug\記住密碼.Form1.resources
?????文件??????36352??2017-02-10?16:53??記住密碼\記住密碼\obj\Debug\記住密碼.pdb
?????文件????????180??2017-02-10?16:53??記住密碼\記住密碼\obj\Debug\記住密碼.Properties.Resources.resources
?????文件????????791??2017-04-15?13:10??記住密碼\記住密碼\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件???????6889??2017-04-15?13:10??記住密碼\記住密碼\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件???????4608??2017-02-10?16:54??記住密碼\記住密碼\obj\x86\Debug\TempPE\Properties.Resources.Designer.cs.dll
?????文件???????1757??2017-04-15?13:10??記住密碼\記住密碼\obj\x86\Debug\記住密碼.csproj.FileListAbsolute.txt
?????文件????????847??2017-02-10?16:54??記住密碼\記住密碼\obj\x86\Debug\記住密碼.csproj.GenerateResource.Cache
............此處省略30個文件信息
- 上一篇:夢幻古龍管理工具c#源代碼
- 下一篇:C#窗體串口通訊界面編程
評論
共有 條評論