Advertisement
crying234324

Untitled

Feb 18th, 2024
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.75 KB | None | 0 0
  1. Public Class exitform
  2.  
  3.     Private Sub LBL_leave_Click(sender As Object, e As EventArgs) Handles LBL_leave.Click
  4.         Application.Exit()
  5.     End Sub
  6.  
  7.     Private Sub pbx_leave_Click(sender As Object, e As EventArgs) Handles pbx_leave.Click
  8.         Application.Exit()
  9.     End Sub
  10.  
  11.     Private Sub PBX_stay_Click(sender As Object, e As EventArgs) Handles PBX_stay.Click
  12.         'opens next form, closes current form
  13.         Dim nextform As New MainMenu()
  14.         nextform.Show()
  15.         Me.Hide()
  16.     End Sub
  17.  
  18.     Private Sub LBL_stay_Click(sender As Object, e As EventArgs) Handles LBL_stay.Click
  19.         'opens next form, closes current form
  20.         Dim nextform As New MainMenu()
  21.         nextform.Show()
  22.         Me.Hide()
  23.     End Sub
  24. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement