I don't think it's possible in the context of your dialog.
Supposedly, what you are trying to do can only be done in a dialog
with no controls on it, such as painting with a mouse.
Methinks Darren expects the impossible, or at least something
he hasn't explained yet.

See my posting - OnKeyDown -
The code there works if you create a form with nothing else on it.

Pete.