Hi everyone, I can't find the way to detect when a key is pressed while the form is minimized, help please?
I got this piece of code:
This works when the Form is focused on the screen, but it stops working if i minimize the form.Code:Private Sub Form1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown If e.KeyCode = Keys.Escape Then Timer1.Stop() MsgBox("Auto Typer stopped", 0, "Auto Typer stopped") Button4.BackColor = Color.Lime Button4.Text = "START" Me.WindowState = System.Windows.Forms.FormWindowState.Normal End If End Sub
Thanks!


Reply With Quote

