P
pedestrian via DotNetMonster.com
I create 2 forms for a windows form application: (coding attached)
1) FrmLogin : the login form which show when the application start
2) FrmMain : the main form which show if user input "User" in a textbox in
login form, else
it won't show.
Problem: If I input "user" in login form to go to the main form, main form is
shown, but
when I close the main form (FrmMain), the application doesn't terminate...
How to manage application termination for multiple forms project which show
only 1 form
at a time? Thanks for replying...
Public Class FrmLogin
Private Sub btnOK_Click(...)...
If txtUser.Text = "User" Then
Me.Hide()
FrmMain.Show()
Else
Me.Close()
End If
End Sub
End Class
1) FrmLogin : the login form which show when the application start
2) FrmMain : the main form which show if user input "User" in a textbox in
login form, else
it won't show.
Problem: If I input "user" in login form to go to the main form, main form is
shown, but
when I close the main form (FrmMain), the application doesn't terminate...
How to manage application termination for multiple forms project which show
only 1 form
at a time? Thanks for replying...
Public Class FrmLogin
Private Sub btnOK_Click(...)...
If txtUser.Text = "User" Then
Me.Hide()
FrmMain.Show()
Else
Me.Close()
End If
End Sub
End Class