- 2
- 0
- 约7.76万字
- 约 23页
- 2020-09-08 发布于江苏
- 举报
private void btlogin_Click( object sender, password = dataGridView1.Rows[0].Cells[1].
EventArgs e) Value.ToString().Trim();
{ string username = null ; if (tbusername.Text.Equals(username)
string password = null ; tbmima.Text.Equals(password))
if (tbusername.Text == ) { Form2 f2 = new Form2();
{ MessageBox.Show( 你没有输入用户名! , 错 f2.Visible = true ;
误提示 ); return ; this .Visible = false ;
} }
if (tbmima.Text == ) else
{ MessageBox.Show( 你没有输入密码! , 错误 { MessageBox.Show( 你输入的用户名或密码错误
提示 ); , 错误提示 );
return ; tbusername.Clear();
} tbmima.Clear();
DataSet dst = new DataSet (); }
string connstr = Data Source=(local);Initial con.Close();
Catalog=Message;Integrated Security=True ; }
SqlConnection con = new private void btcancel_Click( object sender,
SqlConnection (connstr); EventArgs e)
con.Open(); { if ( MessageBox.Show( 你是否真的想退出系统?
string str = select * from 登录 ; , 提示 , MessageBoxButtons .YesNo) !=
SqlDataAdapter sda = new SqlDataAdapter (str, DialogResult .No)
您可能关注的文档
最近下载
- 第7课国防现代化起步和外交工作新突破(任务型教学课件)历史新教材统编版五四学制中国历史第四册.pptx VIP
- 新教科版三年级下册科学全册知识点.pdf
- 2026年最新人教版三年级下册数学教案(全册教学设计).docx VIP
- 人教PEP版五年级下册英语全册教案(单元整体设计).docx
- 2026年上海市春季高考语文试卷及答案(相对比较完整版).docx VIP
- 在局开展树立和践行正确政绩观学习教育动员部署会上的讲话.docx VIP
- 材料力学Ⅰ(第三版)苟文选课后习题答案解析.docx
- 广东省2017年学位英语考试真题(非英语专业).pdf VIP
- 年处理原油90万吨联合站的设计.pdf VIP
- 广东省深圳市宝安区2024-2025学年九年级下学期数学二模试题(解析版).pdf VIP
原创力文档

文档评论(0)