Board index » delphi » OnKeyPress Event Not Working?
David Sweeney
![]() Delphi Developer |
Mon, 20 Dec 1999 03:00:00 GMT
OnKeyPress Event Not Working?I've written an OnKeyPress event for a DBGrid. Simple enough, right? procedure TfmMain.MyDBGridKeyPress(Sender: TObject; var Key: Char); This code gives an errror: "Incompatible types" on the first line after The Key parameter is the key on the keyboard. For non-alphanumeric keys, Aside: The VkKeyScan topic in the WIN32.HLP file does NOT list virtual key However, being the resourceful programmer I am, I got it from my trusty Why doesn't this code work? David Sweeney |