Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Private Sub Welcome_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
- If e.Alt And e.KeyCode.ToString = "F11" Then
- Me.KeyPreview = True
- AdminReq.Show()
- Me.Hide()
- ElseIf e.Alt And e.KeyCode.ToString = "F12" Then
- Me.Hide()
- Admin.Show()
- ElseIf e.KeyCode.ToString = "F10" Then
- connection.Open()
- MsgBox("Connected to database!", vbInformation, "Test Connection")
- connection.Close()
- End If
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement