C#写的简单的登录界面程序
2010-10-06 21:00
337 查看
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 WindowsFormsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "abcd" && textBox2.Text == "1234")
System.Diagnostics.Process.Start("www.baidu.com");
else
MessageBox.Show("密码错误","注意:");
}
private void button2_Click(object sender, EventArgs e)
{
MessageBox.Show("是否真的要退出!","提示:",MessageBoxButtons.YesNo,MessageBoxIcon.Warning);
this.Close();
}
}
}
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "abcd" && textBox2.Text == "1234")
System.Diagnostics.Process.Start("www.baidu.com");
else
MessageBox.Show("密码错误","注意:");
}
private void button2_Click(object sender, EventArgs e)
{
MessageBox.Show("是否真的要退出!","提示:",MessageBoxButtons.YesNo,MessageBoxIcon.Warning);
this.Close();
}
}
}
相关文章推荐
- 一个简单的Android程序的登录界面
- 简单的c# 登录程序
- 自己写的一个C#简单登录程序
- C# 关于登录界面与主界面,关闭主界面程序不关闭的解决办法
- C# 实现简单的登录界面
- MFC 简单的用户登录界面(在主程序窗口之前)
- C#开发程序登录界面用户名和密码的验证
- jetway_loves_programming之c#初学——登录界面程序
- C#程序登陆界面简单实现
- C# 实现多态的的简单易学的例子-实现不同的用户登录到不同的界面(用抽象类,抽象方法实现的多态)加上泛型来实现
- 用C#做个简单的登录界面
- C#连接数据库制作简单登录界面
- [C#] cmdarg_ui:“简单参数命令行程序”的通用图形界面
- Java小程序之GUI开发简单前台登录界面
- C#实现简单的登录界面
- 浅谈:如何用C#实现简单的带有验证码及密码使用MD5加密的“登录”WinForm小程序
- ExtJs-简单的登录界面制作
- 用C#设计一个简单的修改密码界面
- C#一个简单的定时小程序实现代码
- C#不登录电脑启动程序_0