what event should i use?

Posted on 2006-05-24
Last Modified: 2010-05-19
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?
Question by:moayyad
    LVL 28

    Accepted Solution

    try OnKeyPress ;)
    procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
      if key=#13 then showmessage('enter');

    Author Comment

    thanQ u

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
    In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
    This video discusses moving either the default database or any database to a new volume.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now