Solved

Stop that beep!

Posted on 1997-04-21
2
339 Views
Last Modified: 2010-04-04
How do I keep an edit box from beeping when the enter key is pressed?
0
Comment
Question by:sleach
2 Comments
 
LVL 2

Accepted Solution

by:
javiertb earned 50 total points
ID: 1335603
You have to write a handler for the OnKeyPress event to do what you what with the pressed key and the in the Edit box keypress event do the following:

procedure TForm1.EditKeyPress(Sender: TObject; var Key: Char);
begin
   if key=#13 then // if Return key pressed
      key:=#0;
   inherited KeyPress(Sender,Key)  // your new handler
end;
0
 
LVL 1

Author Comment

by:sleach
ID: 1335604
Thank you
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

830 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