i have three forms i.e. welcome, login and exit
each of them have buttons,
1. welcome button directs to login form and
2. the login button directs to the exit form and
3. then the exit button exits the program
The 3rd step does not work. the program just exits the exit form and stays in the debug mode. we have to manually press stop debuging to exit the program.
below are the relevant codes for the program. Please help!!!!! THANK YOU IN ADVANCE FOR YOUR TIME AND EXPERTISE
--------------
welcome form
-----------------------
Private Sub WelcomeButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles WelcomeButton.Click
Dim objLoginForm As New LoginForm
Me.Close()
objLoginForm.Show()
End Sub
---------------------
----------
login form
-----------
Private Sub LoginButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LoginButton.Click
Dim objExitForm As New ExitForm
objExitForm.Show()
Me.Close()
End Sub
-------------
------------
exit form
-------------
Private Sub ExitButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitButton.Click
Dim Form1 As New LoginForm
Dim Form2 As New WelcomeForm
Form1.Close()
Form2.Close()
Me.Close()
End Sub
-----------------------
each of them have buttons,
1. welcome button directs to login form and
2. the login button directs to the exit form and
3. then the exit button exits the program
The 3rd step does not work. the program just exits the exit form and stays in the debug mode. we have to manually press stop debuging to exit the program.
below are the relevant codes for the program. Please help!!!!! THANK YOU IN ADVANCE FOR YOUR TIME AND EXPERTISE
--------------
welcome form
-----------------------
Private Sub WelcomeButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles WelcomeButton.Click
Dim objLoginForm As New LoginForm
Me.Close()
objLoginForm.Show()
End Sub
---------------------
----------
login form
-----------
Private Sub LoginButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LoginButton.Click
Dim objExitForm As New ExitForm
objExitForm.Show()
Me.Close()
End Sub
-------------
------------
exit form
-------------
Private Sub ExitButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitButton.Click
Dim Form1 As New LoginForm
Dim Form2 As New WelcomeForm
Form1.Close()
Form2.Close()
Me.Close()
End Sub
-----------------------