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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top