Re: Keyboard Event



Sander Martens wrote:

Hi All,

How can I register the pressing of the enter key?

Something like if Key = VK_Return then
begin
end;

Thanks in advance.


you have events on your form that allows you to monitor the
keyboard messages how  ever, you need to set the KEYPREVIEW
property to True so that the form will call the events.

.