Reputation:
I'm starting my experiment with VB.Net, I'm trying to open a new form and open the current one, my code looks like this:
Private Sub bt_requisitar_Click(sender As Object, e As EventArgs) Handles bt_requisitar.Click
Me.Close()
IniciarSessao.Show()
End Sub
But when I click on the button the new form that was opened stays open for a few thousandths of a second and closes, can someone help me?
Upvotes: 0
Views: 346
Reputation: 2216
Me.close is will end the application , try this.
Me.Hide()
IniciarSessao.Show()
Upvotes: 1