The canvas will only get KeyDown events while it has focus. So check the
"AcceptFocus" checkbox in the IDE. You may also want to set the focus to
the canvas on MouseDown if that's appropriate for your needs.
David
> I'm desperately trying to use the KeyDown event in my canvas class - but no
> event ever reaches it...
>
> Simple test project: canvas in a window - in the open event of the canvas:
> me.setfocus - in the KeyDown event of the canvas: beep.
>
> Does not work. Any suggestions?
>
> TIA,
>
> Jörg
--
David Grogono
dave at realsoftware dot com
|