1 2 3 4 5 6 7 8 |
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Integer Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Dim ahk As Boolean ahk = GetAsyncKeyState(Keys.F5) If ahk = True Then Me.WindowState = FormWindowState.Maximized End If End Sub |