problem with OnKeyDown

  • Thread starter Thread starter news.microsoft.com
  • Start date Start date
N

news.microsoft.com

Hi all.
I have a problem eith OnKeyDown
it work fine when on the form there are nothing, but when I am adding
toolbar it does not work properly, I receive Keys.Up event for 2 second time

Can anyone help me ?

thanks
 
Hi,

When you have several controls on your form, it is not guranteed that the
key event is focused to the container FORM where you have the OnKeyDown
tracked..

Nirosh.
 
news.microsoft.com said:
and what can I do in that case to handle this event?

Override the WndProc function of your form and handle the WM_KEYDOWN message
(which value is 0x0100).
 
Back
Top