Board index » delphi » Beep..Beeping TEdit

Beep..Beeping TEdit

Hi,

My TEdit box beeps every time I press Enter, I want to capture Enter keys
and for this purpose I'm using onkeydown, I've tried setting key to 0 in my
onkeydown event but this had no affect

Can anyone please help me with a silent TEdit?

Thanks
Keller

 

Re:Beep..Beeping TEdit


Hi,

My TEdit box beeps every time I press Enter, I want to capture Enter keys
and for this purpose I'm using onkeydown, I've tried setting key to 0 in my
onkeydown event but this had no affect

Can anyone please help me with a silent TEdit?

Thanks
Keller

Re:Beep..Beeping TEdit


you could use onkeypress and look for #13 in there, it'll not beep if you
set it to #0 in the onkeypress... afaik atleast

HTH
  Roel

Quote
keller <h_...@usa.net> wrote:
> Hi,
> My TEdit box beeps every time I press Enter, I want to capture Enter keys
> and for this purpose I'm using onkeydown, I've tried setting key to 0 in my
> onkeydown event but this had no affect
> Can anyone please help me with a silent TEdit?
> Thanks
> Keller

Other Threads