'How to use InputBox to move to another form
Here's my code
Private Sub BookButton_Click(sender As Object, e As EventArgs) Handles BookButton.Click
Dim Response = InputBox("Enter Employee ID", "Employee Confirmation", "Employee ID", 500, 700)
If Response = "EmployeeTest" Then
Form2.Show()
Else
MsgBox("Invalid Employee ID, Please Try Again", MsgBoxStyle.Exclamation, "Invalid input")
End If
End Sub
when i run the project, after the I entered the correct input, its back to Form1, nothing happens, the input box closed itself. I want to show Form2 after user entered the correct input
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
