what event should i use?

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?
Who is Participating?
2266180Connect With a Mentor Commented:
try OnKeyPress ;)
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
  if key=#13 then showmessage('enter');
moayyadAuthor Commented:
thanQ u
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.