// new Form2().Show();//form2显示new Form2().Show(); }
}
else
{
MessageBox.Show("密码错误,请重新输入!", "错误", MessageBoxButtons.OK, rmation);
}
}
conn.Close();
}
private void Form6_Load(object sender, EventArgs e)
{
string MyConn = ;
conn = new SqlConnection(MyConn);
}
}
}
7.2 进入系统界面
using System;
using
using ponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using
namespace WindowsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
Form2 f = new Form2(); f.Show();
}
private void button2_Click(object sender, EventArgs e)
{
Form2 A = new Form2(); A.Show();
// A frm2 = new A();
// frm2.Show();
}
}
}
7.3 订票过程
using System;
using
using ponentModel;
using System.Data;
搜索“diyifanwen.net”或“第一范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,第一范文网,提供最新高中教育机票预订系统课程设计报告(15)全文阅读和word下载服务。
相关推荐: