判断值跳窗口

string da = textBox1.Text;
string chui = textBox2.Text;
if (da.Equals("da") && chui.Equals("chui"))
{
MessageBox.Show("验证成功");
Form2 f = new Form2();
f.Show();
}
else
{
MessageBox.Show("输入失败");
Form3 f = new Form3();
f.Show();

posted on 2018-07-21 22:52  大锤a  阅读(109)  评论(0)    收藏  举报

导航