'I have multiple forms. Login page then data entry and at the end information about entered data

I have multiple forms. Login page then data entry and at the end information about entered data. When I debug the login form pops up after entering credentials data entry form pops up. I want to close the login screen once the data entry screen is open. How can I do that?



Solution 1:[1]

In Project --> XXX Properties, in the Application tab, change the Shutdown mode option to When last form closes.

Now open your data entry form and close the login form:

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim frm As New frmDataEntry
    frm.Show()
    Me.Close() ' close the current form (presumably the "login" one)
End Sub

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Idle_Mind