procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
if Key = '+' then
begin
// 做某些事
////////////////////////////// // 消去按键
Key := #0;
end;
end;
begin
if Key = '+' then
begin
// 做某些事
////////////////////////////// // 消去按键
Key := #0;
end;
end;
不好意思!我不知道'+'的关键值!