I'm got a Windows application pretty much finished. One of the last tasks is to allow the user to fire buttons using keypresses. I thought this would be fairly trivial. I was able to get a new Windows app with an empty form to fire this event.
However, when I try to implement a KeyPress handler in my current application, the event doesn't seem to fire. Does anyone have any ideas why this might be?
Here's the handler:
Private Sub Main_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress
Select Case e.KeyChar