Board index » delphi » Beep when pressing Enter key

Beep when pressing Enter key

Hi,
    I've got a little problem with the beep when pressing the key Enter
in a TEdit. For me, pressing Enter is a validation and it sounds like an
error. Is that a parameter which can be changed ?

thank you

        Xavier

 

Re:Beep when pressing Enter key


Catch the keystroke in the OnKeyDown event and then set the Key to 0 if it's
13. If you want the Enter key to work like the tab key, post a message with
the tab key as the parameter at the same time.

Woody

Quote
Xavier Darcos <xdar...@astek.fr> wrote in message

news:37EF2C45.F4CA0A88@astek.fr...
Quote
> Hi,
>     I've got a little problem with the beep when pressing the key Enter
> in a TEdit. For me, pressing Enter is a validation and it sounds like an
> error. Is that a parameter which can be changed ?

> thank you

>         Xavier

Other Threads