Home > Back-end > Delphi to eliminate TEdit control system sound after press enter
Delphi to eliminate TEdit control system sound after press enter
Time:11-08
Delphi to eliminate TEdit control system sound after press enter
CodePudding user response:
TEdit OnKeyPress realize respond to events, and then assign the key # 0 Such as: Procedure TForm1. Edit1KeyPress (Sender: TObject; Var Key: Char); The begin If the key=# 13 then key:=# 0; The end;