資源簡介
源碼描述:
一、源碼特點用c#作的登錄窗體,內還有嚴格的檢驗條件,可以作為借鑒
二、菜單功能
1、本原碼是一個登錄窗體源碼,用戶名或者密碼輸入不正確,都會導致登錄失敗
2、輸入正確登陸名密碼后,進入歡迎頁面
三、注意事項
1、開發環境為Visual Studio 2010,使用.net 3.5開發。
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
namespace?LoginFormDemo
{
??public?partial?class?LoginForm?:?Form
??{
????private?bool?isShowing?=?true;
????public?LoginForm()
????{
??????InitializeComponent();
????}
??????//?下載于www.51aspx.com
????private?void?Authenticate()
????{??????
??????Refresh();
??????if?(!?User.isValid(txtUserName.Text?txtPassword.Text))
??????{
????????MessageBox.Show(“請輸入正確的用戶名和密碼.“
??????????“登錄失敗“?
??????????MessageBoxButtons.OK?
??????????MessageBoxIcon.Information);
????????DialogResult?=?DialogResult.None;?//?keep?the?login?form?open
????????return;
??????}???
???????
??????//?Vali
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2016-05-07?09:12??YWLoginFor?13\
?????目錄???????????0??2015-02-28?14:11??YWLoginFor?13\bin\
?????目錄???????????0??2015-02-28?14:12??YWLoginFor?13\bin\Debug\
?????文件???????20992??2015-02-28?14:28??YWLoginFor?13\bin\Debug\LoginFormDemo.exe
?????文件???????40448??2015-02-28?14:28??YWLoginFor?13\bin\Debug\LoginFormDemo.pdb
?????文件???????11608??2015-02-28?14:30??YWLoginFor?13\bin\Debug\LoginFormDemo.vshost.exe
?????目錄???????????0??2015-02-28?14:30??YWLoginFor?13\bin\Release\
?????文件????????4945??2014-04-30?09:10??YWLoginFor?13\from.gif
?????文件????????2141??2015-02-28?14:23??YWLoginFor?13\LoginForm.cs
?????文件????????7881??2015-02-28?14:20??YWLoginFor?13\LoginForm.Designer.cs
?????文件???????17726??2008-06-12?22:41??YWLoginFor?13\LoginForm.resx
?????文件????????4437??2015-02-28?14:11??YWLoginFor?13\LoginFormDemo.csproj
?????文件?????????915??2015-02-28?14:26??YWLoginFor?13\LoginFormDemo.sln
?????文件???????33280??2015-02-28?14:30??YWLoginFor?13\LoginFormDemo.suo
?????文件????????1165??2015-02-28?14:14??YWLoginFor?13\MainForm.cs
?????文件????????2076??2008-06-12?22:46??YWLoginFor?13\MainForm.Designer.cs
?????文件????????5814??2008-06-12?22:46??YWLoginFor?13\MainForm.resx
?????目錄???????????0??2008-06-12?20:21??YWLoginFor?13\obj\
?????目錄???????????0??2015-02-28?14:28??YWLoginFor?13\obj\Debug\
?????文件?????????789??2015-02-28?14:13??YWLoginFor?13\obj\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件????????6274??2015-02-28?14:28??YWLoginFor?13\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????1116??2015-02-28?14:30??YWLoginFor?13\obj\Debug\LoginFormDemo.csproj.FileListAbsolute.txt
?????文件?????????912??2015-02-28?14:12??YWLoginFor?13\obj\Debug\LoginFormDemo.csproj.GenerateResource.Cache
?????文件???????20992??2015-02-28?14:28??YWLoginFor?13\obj\Debug\LoginFormDemo.exe
?????文件????????7505??2015-02-28?14:12??YWLoginFor?13\obj\Debug\LoginFormDemo.LoginForm.resources
?????文件?????????180??2015-02-28?14:12??YWLoginFor?13\obj\Debug\LoginFormDemo.MainForm.resources
?????文件???????40448??2015-02-28?14:28??YWLoginFor?13\obj\Debug\LoginFormDemo.pdb
?????文件?????????180??2015-02-28?14:12??YWLoginFor?13\obj\Debug\LoginFormDemo.Properties.Resources.resources
?????目錄???????????0??2015-02-28?14:11??YWLoginFor?13\obj\Debug\TempPE\
?????文件????????4608??2015-02-28?14:11??YWLoginFor?13\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
?????文件?????????482??2015-02-28?14:23??YWLoginFor?13\Program.cs
............此處省略7個文件信息
評論
共有 條評論