Hi,
Sorry for asking a stupid question.But I'm really confused.
In OnkeyPress, this code works properly.
if Key = #13 then Key := #0;
But these code in OnKeyDown don't work. Why?
if Key = Ord('a') then Key := 0;
if Key = VK_ENTER then Key := 0;
Of course KeyPreview = True.
Thanks in advance.
Sorry for asking a stupid question.But I'm really confused.
In OnkeyPress, this code works properly.
if Key = #13 then Key := #0;
But these code in OnKeyDown don't work. Why?
if Key = Ord('a') then Key := 0;
if Key = VK_ENTER then Key := 0;
Of course KeyPreview = True.
Thanks in advance.