Hi John, I believe you are using the TEdit's OnKeyPress event to handle the ENTER key. You are right that the enter key is invalid input for TEdit (since it does not support multiline sentences). So the cure is simple, just remove the ENTER key information. Setting Key parameter to #0 will do it.
Regards, Luthfi --- On Thu, 8/18/11, John Dammeyer <jo...@autoartisans.com> wrote: > From: John Dammeyer <jo...@autoartisans.com> > Subject: Typing ENTER key in Tedit rings bell > To: "'Moderated List for the Discussion of Delphi Programming > excludingDatabase-related topics'" <delphi@elists.org> > Date: Thursday, August 18, 2011, 9:55 AM > I'm using a Tedit form for entering a > string of characters. I want the > ENTER key to call a button ONCLICK event. That all > works. The problem is > the ENTER key also rings the bell on Windows. > > How do I prevent the bell from ringing. I'm guessing > it's because the > ENTER key is considered an invalid input. How do I > add the ENTER key to > be a valid input so it doesn't bing the bell? _______________________________________________ Delphi mailing list Delphi@elists.org http://lists.elists.org/cgi-bin/mailman/listinfo/delphi