steviep
Dec 6th, 1999, 08:12 PM
I've got an MDI program with sub "child" windows. I need the program to run a sub when a particular key is pressed eg:
Private Sub Form_KeyDown
if keycode=100 then cmd_click
End Sub
Child forms will do this but no the MDI form. Unfortunately if I've got more than one child window open at once then the above code on one child will not work from another.
The keys need to do this through the whole program.
Any ideas?
Private Sub Form_KeyDown
if keycode=100 then cmd_click
End Sub
Child forms will do this but no the MDI form. Unfortunately if I've got more than one child window open at once then the above code on one child will not work from another.
The keys need to do this through the whole program.
Any ideas?