what event should i use?

Hello,
after a user hitting "enter" in a textfield i wanna something happens.

so, what the event "clicking enter" called ? .. i tried the event "OnEnter" but that seems refers to the starting up for the textfireld, means when the user click it to write..

would u help me please to find the correct event?
moayyadAsked:
Who is Participating?
 
2266180Connect With a Mentor Commented:
try OnKeyPress ;)
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
  if key=#13 then showmessage('enter');
end;
0
 
moayyadAuthor Commented:
thanQ u
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.