Board index » delphi » Combo box goes 'ding'

Combo box goes 'ding'

After something is entered in a combo box, and then the enter key is pressed
to trigger an OnKeyPress event, the computer goes 'ding'. Does anyone know
how to stop this happening.
 

Re:Combo box goes 'ding'


Any key which you handle in a key event must then be set to #0 or the
program will try to interpret it. The enter key serves no function so the
program will "ding". If you are using the Enter key like a Tab to go to the
next field, then you need to set  Key = #0 after posting the WM_NEXTDLGCTL
message.

--

Woody

Quote
Tony Durrant <Tony.Durr...@connectingbusiness.com> wrote in message

news:86ajca$4a5$1@lure.pipex.net...
Quote
> After something is entered in a combo box, and then the enter key is
pressed
> to trigger an OnKeyPress event, the computer goes 'ding'. Does anyone know
> how to stop this happening.

Other Threads