以下是引用gowine在2016-12-15 19:36:55的发言:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If (RichTextBox1.Text = "yufang") And (RichTextBox2.Text = "yu13425413205") Then
Form2.Show()
Else
MessageBox.Show("你的用户名或密码不正确!", "登录提示", MessageBoxButtons.OK,MessageBoxIcon.Exclamation)
End If
End Sub
谢谢你的回复
,可是呢,当我在调试的时候,输入正确的用户名和密码后,按了确定,为什么却出现了messagebox.而不是Form2.