Trapping the arrow keys
Posted on 1998-10-08
I have a form with a Panel on it, and I want the Panel to move when I press an arrow key. I have set the form's KeyPreview property to true, and I am using the KeyDown event to try to trap the arrow keys.
Originally I tried using character keys instead, but that causes the character to be added into the DBGrid at the bottom of my form.
I have tried using WMGetDlgCode, but it doesn't seem to help (unless I have put it in the wrong place??)
I am using D1 and WFW 3.11