I'm trying to create a program which will work in the background and can be brought back to the topmost upon a keyboard shortcut. I got stuck when creating the multiple keypress statement, and not sure how to make the shortcut work when the form is not in focus.
Here's the shortcut I'm trying to make, but it won't work.
Private Sub TakeDown_KeyDown(sender As Object, e As KeyEventArgs) Handles TakeDown.KeyDown If e.KeyCode = Keys.LWin And e.KeyCode = Keys.Z = True Then Me.BackColor = Color.Blue End If End Sub
The if I use only one key it will work, but not when using the code for pressing two keys at the same time.