You can implement IMessageFilter from SDF and trap WM_KEYDOWN:
http://www.opennetcf.org/library/Ope...ageFilter.html
Also see this example that demonstrates how to trap WM_KEYDOWN event and
how to suppress Up, Down keys:
http://www.sergeybogdanov.com/sample...DownFilter.zip
Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
Robert wrote:
> As you know, keyPreview is not supported in CF. However, you know and I know
> it is badly needed. I want to let the user press the number key to invoke
> the command buttons, say, 1 for print, 2 for open file etc.
>
> I am sure some one already asked similar question and some one perhaps
> already have a solution.
>
> Any dieas?
>
>