Knowledge Base

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

Article ID: 190883

Article Last Modified on 1/23/2007


APPLIES TO


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.

Additional query words: prb keypress acive x activex ole

Keywords: kbprb KB190883