![]() |
#2
步向巅峰2014-06-18 19:59
|
private void bt1_Click(object sender, EventArgs e)
{
yhm = tb1.Text.Trim();
mm = tb2.Text.Trim();
if (yhm == "xs" && mm == "jike")
{
Form1 f2 = new Form2();
f2.Show();
this.Hide;
}
else
MessageBox .Show ("用户名或密码错误");
}
错误 1 无法将类型“选课系统.Form2”隐式转换为“选课系统.Form1” E:\c#课本练习\选课系统\选课系统\Form1.cs 31 28 选课系统
错误 2 只有 assignment、call、increment、decrement 和 new 对象表达式可用作语句 E:\c#课本练习\选课系统\选课系统\Form1.cs 33 17 选课系统