Re: Some help plz


[ DelphiLand Discussion Forum ]

Posted by Rbrrneck on May 04, 19103 at 08:54:35:

In Reply to: Some help plz posted by Swizec on April 15, 19103 at 19:28:48:

: All I would like to know is how to make code that recognises that I pressed a key and what that key was?

put the keypreview property of the main form to true, in the onkeyup event of the main form write this:

begin
  showmessage(chr(key)+'  the code of the key is:'+#10#13+IntToStr(key));
end; 

Related Articles and Replies:


[ DelphiLand Discussion Forum ]