2016年12月22日

03 通过Button打开另一个的frm

摘要: private void Form1_FormClosing(object sender, FormClosingEventArgs e) { DialogResult re = MessageBox.Show("确定离开吗","询问",MessageBoxButtons.YesNo,MessageBoxIcon.Question); if(re==DialogResult.No) { e.Ca... 阅读全文

posted @ 2016-12-22 23:35 xcyg 阅读(357) 评论(0) 推荐(0) 编辑

02 button的练习

摘要: 1 2 3 private void button1_Click(object sender, EventArgs e) 4 { 5 MessageBox.Show("我也喜欢你!"); 6 //if (this.button1.Text == "喜欢") 7 //{ 8 // button2.Visible = false; 9 //} 10 11 } 12 priv... 阅读全文

posted @ 2016-12-22 23:28 xcyg 阅读(366) 评论(0) 推荐(0) 编辑

01windows窗体程序学习

摘要: 1 2 3 静态用户名和密码的登录练习 4 5 private void button2_Click(object sender, EventArgs e) 6 { 7 8 textUser.Text = Convert.ToString(textUser.Text); 9 textBox2.Text = textBox2.Text.ToString(); 10... 阅读全文

posted @ 2016-12-22 23:20 xcyg 阅读(333) 评论(0) 推荐(0) 编辑

导航