資源簡介
一個用c#做的非常漂亮的登陸窗體,,,,,,,,。。。。。。。

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
namespace?CRM_Login
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????double?dou?=?0.05;
????????Form_Show?show?=?new?Form_Show();
????????private?void?timer1_Tick(object?sender?EventArgs?e)
????????{
????????????????this.Opacity?+=?dou;
????????????????if?(this.Opacity?==?1)
????????????????{
????????????????????timer1.Stop();
????????????????????dou?=?-0.05;
????????????????????timer2.Start();
????????????????}else?if?(this.Opacity?==?0)
????????????????{
????????????????????timer1.Stop();
????????????????????Form2?form?=?new?Form2();
????????????????????show.Get_Show(form);
????????????????}
????????}
????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{
????????????this.AcceptButton?=?btn_Login;
????????????this.CancelButton?=?btn_Cancel;
????????????skinEngine1.SkinFile?=?“CalmnessColor2.ssk“;
????????????this.Opacity?=?0;
????????????timer1.Start();
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????if?(txt_LoginName.Text.Equals(“admin“)?&&?txt_LoginPwd.Text.Equals(“admin“))
????????????????timer1.Start();
????????????else
????????????????MessageBox.Show(“登陸失敗,如果你不知道登陸名跟密碼請使用“+“\radmin“+“\radmin“+“\r嘗試登陸““溫馨提示“MessageBoxButtons.OKMessageBoxIcon.Warning);
????????}
????????private?void?exitToolStripMenuItem_Click(object?sender?EventArgs?e)
????????{
????????????show.Get_Close(this);
????????}
????????private?void?btn_Cancel_Click(object?sender?EventArgs?e)
????????{
????????????txt_LoginName.Text?=?““;
????????????txt_LoginPwd.Text?=?““;
????????}
????????int?heigh?=?0;
????????private?void?timer2_Tick(object?sender?EventArgs?e)
????????{
????????????if?(heigh?<=?160)
????????????{
????????????????this.panel1.Size?=?new?System.Drawing.Size(311?heigh);
????????????????heigh?+=?3;
????????????}
????????????else
????????????{
????????????????timer2.Stop();
????????????}
????????}
????????private?void?pictureBox1_MouseEnter(object?sender?EventArgs?e)
????????{
????????}
????????private?void?pictureBox1_Click(object?sender?EventArgs?e)
????????{
????????????show.Get_Close(this);
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄??????????0??2009-10-23?17:27??漂亮登錄窗體
-----------?---------??----------?-----??----
??????????????1460434????????????????????81
- 上一篇:c#實現 用戶登錄及記事本應用程序
- 下一篇:C#vs2010儀表盤(源碼)
評論
共有 條評論