I have alot of experience in working in VBA for excel, but not so much experience in creating my own structures so it's all still a bit foggy.
I'm trying to capture the event for when the F1 key is pressed, not just when the form is active, but anytime the program is running. The code below expressing the handling is automatically generated for me in VB Express... But I'd like to change the situation to encompass anytime the program is open. I guess I have to reference events that happen in windows in general, but i don't know how to do it. I think i have to create the even in a class module??? If someone could kind of shove me in the right direction, I'd be very much appreciative.
Code:Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown If e.KeyCode = "112" Then Call SaveWholeForm() End If End Sub




Reply With Quote