资源简介
一个用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仪表盘(源码)
相关资源
- C# OCR数字识别实例,采用TessnetOcr,对
- 考试管理系统 - C#源码
- asp.net C#购物车源代码
- C#实时网络流量监听源码
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
- C#语音识别系统speechsdk51,SpeechSDK51L
- 数据库备份还原工具1.0 C# 源码
-
[免费]xm
lDocument 节点遍历C# - EQ2008LEDc#开发实例
- DirectX.Capturec# winform 操作摄像头录像附
- c# 实现的最大最小距离方法对鸢尾花
- C#版保龄球记分代码
- C#自定义控件
- 基于c#的实验室设备管理系统621530
川公网安备 51152502000135号
评论
共有 条评论