if text1.text =text2.text then form2.show else msgbox "错误" end if 补充你的问题: if text1.text =text2.text then unload form1 form2.show else msgbox "错误" end ifw问题补充:哥们,你就不会变通吗,只要你明白了代码的意思 自己完全就可以写出来了。If Text1.Text = Text2.Text ThenUnload Form1form2.ShowElseIf Text1.Text = Text3.Text ThenUnload ...