Delphi7.0中Edit1中敲Enter(回車)鍵怎不會響應showmessage('ssssss');而要shift+Enter才會showmessage('ssssss');procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
if Key=#13 then showmessage('ssssss');
end;
begin
if Key=#13 then showmessage('ssssss');
end;
Shift: TShiftState);
begin
if Key=VK_RETURN then showmessage( 'ssssss ');
end;
呵呵