Public Class Form1
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox1.Text = "1" Then
If TextBox2.Text = "2" Then
MsgBox("登入成功!")
Form2.Show()
Me.Close()
Else
MsgBox("密碼錯誤!")
TextBox2.Clear()
End If
Else
MsgBox("無此帳號!")
TextBox1.Clear()
TextBox2.Clear()
End If
End Sub
End Class
但此程式碼關閉表單1後,連表單2也關了
怎麼才能讓它不要關閉表單2呢?
我是用vb 2010 express
求高手!

X