SetFocus of LabelEdits ,editboxes.

Posted on 2007-10-02
Last Modified: 2008-01-09
I amek an appliocation in Delphi 7 and i have a form with some LabelEdits,editboxes e.t.c. and i work on keypress event

   if key=#13 then

 to set the focus to the next labeledit or editbox or whatelse, each time the user hit the enter button.Everything it is ok but when you press the enter button it makes a pestilential noise ("ntoug ":) ).How can i pass this horrible noise?

Thanks in advance!
Question by:alex_code
    LVL 27

    Accepted Solution

    simple try this change

      if key=#13 then
        key := #0;

    not tested

    meikl ;-)
    LVL 9

    Author Comment

    Hi kretzschmar,

    Yes, this is a very quick solution thanks a lot!!!!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
    Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    759 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

    8 Experts available now in Live!

    Get 1:1 Help Now