ACC: KeyDown Event Doesn't Fire for Custom OCX Controls (190883)



The information in this article applies to:

  • Microsoft Access for Windows 95 7.0
  • Microsoft Access 97

This article was previously published under Q190883
Advanced: Requires expert coding, interoperability, and multiuser skills.

SYMPTOMS

When you create a custom OCX using Visual C++ that uses the KeyDown event as part of its functionality, you may notice that not all keys will invoke the event.

CAUSE

Microsoft Access does not forward all keys to the OCX control.

STATUS

This behavior is by design

MORE INFORMATION

When working with the KeyDown event of custom OCXs, the following keys are not forwarded by Microsoft Access:
   DELETE
   HOME
   END
   PAGEUP
   PAGEDOWN
   ARROW keys
				

All other keys work as expected.

Modification Type:MajorLast Reviewed:10/20/2003
Keywords:kbprb KB190883