Board index » delphi » TComboBox - Bell

TComboBox - Bell

Hello All,

Pressing the Enter key in the TComboBox causes the bell to ring.
How do I stop this happening.

Many thanks
Alan L.

 

Re:TComboBox - Bell


Hello All,

Pressing the Enter key in the TComboBox causes the bell to ring.
How do I stop this happening ?

Many thanks
Alan L.

Re:TComboBox - Bell


in the ComboBox OnKeyPress do this:

if Key = #13 then
  Key := #0

Quote
"Alan L." <A...@Yahoo.com> wrote in message news:3ca366b3_1@dnews...
> Hello All,

> Pressing the Enter key in the TComboBox causes the bell to ring.
> How do I stop this happening.

> Many thanks
> Alan L.

Re:TComboBox - Bell


Yes, that works
Thanks very much Wayne

Alan L.

Quote
"Wayne" <mewayne.NO.S...@hotmail.com> wrote in message

news:3ca36d97$1_1@dnews...
Quote
> in the ComboBox OnKeyPress do this:

> if Key = #13 then
>   Key := #0

> "Alan L." <A...@Yahoo.com> wrote in message news:3ca366b3_1@dnews...
> > Hello All,

> > Pressing the Enter key in the TComboBox causes the bell to ring.
> > How do I stop this happening.

> > Many thanks
> > Alan L.

Other Threads