请帮我解决它。我需要一种方法,我必须使用 else 来按下一个按钮,将我移动到另一种形式
pls help me fix it. I need a way that I have to use an else to press a button that will move me to another form
我需要一种方法,我必须使用 else 来按下一个按钮,将我移动到另一个表单(抱歉我的英语不好 ^-^)
Else
Form3.Show()
Me.Hide()
Exit Sub
End Sub
您不需要 Exit Sub
直接位于 End Sub
之上。
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
If 1 <> 1 Then
'never True
Else
Me.Hide()
Form3.Show()
End If
End Sub
我需要一种方法,我必须使用 else 来按下一个按钮,将我移动到另一个表单(抱歉我的英语不好 ^-^)
Else
Form3.Show()
Me.Hide()
Exit Sub
End Sub
您不需要 Exit Sub
直接位于 End Sub
之上。
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
If 1 <> 1 Then
'never True
Else
Me.Hide()
Form3.Show()
End If
End Sub