Okay, I have a tool strip and it has a shortcut for a button.
But when the program first loads I have to press on the main form to make the shortcut be able to be used. How can I get around this?Code:Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown Me.KeyPreview = True If e.KeyCode = Keys.Enter Then e.SuppressKeyPress = True Go1.PerformClick() End If End Sub
Thank you,
Adam




Reply With Quote