资源简介
一个用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#vs2010仪表盘(源码)
- c#实现 用户登录及记事本应用程序
- c# 招聘系统代码,初学者可看
- 游戏商城网页项目C# ASP.NET Web .zip
- 开发框架 C#源码
- C#开发实战宝典.7z.004
- 实战突击C# 项目开发案例整合,完整
- [C#开发实战1200例第2卷].王小科等.扫描
- c#自定义进度条
- c#自定义圆角panel
- 图片压缩C#代码分辨率、图片质量
-
c# JSon
helper 工具类 - C#汉字转拼音类库NPinyin附带使用说明
- C# windows窗体程序 通讯录
- C#记事本(含汉字统计等)源代码
- c#(winform)调用VBS脚本
- C#+oracle做的图书管理系统
- c# 简单网页程序
- C#实现的井字棋包括人对人,人对电脑
- C#计算器设计(可连续运算)
- C# 控制台贪吃蛇开发源码
- 企业电话客服系统 C# 源码
- C#版本模拟登陆百度,2018年4月27日可
- Halcon联合C#模板匹配MVSDK采集
- C#模拟LED点阵显示,支持数字汉子英文
- C#服务器推技术http长连接的应用
- 实现输入拼音或者简码模糊查询数据
- IC卡考勤系统
- C# WPF DataGrid控件实现三级联动
- C#开发模拟回合制游戏源码
评论
共有 条评论