Catch onKeyDown Event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
my application consists of a few forms. One form is the main form, wich
loads the other forms in fullscreen (to get one form as the title bar, one as
the window, etc...), so the main form is coverd by severel other forms. My
problem is, that I want to catch the onKeyDown Event, regardless of which
form is actually loaded. I tried it in the main form, but I think because
it's not the active form where the user acts in, I can't get the event. Does
somebody know a way to do this?

Thx,
Cyberdot
 
Hi

Maybe not the tidiest way of doing it, but couldn't you create a shared
sub on your main form and call it from each OnKeyDown?
 
Back
Top