Tema: enter
Ver Mensaje Individual
  #2  
Antiguo 19-02-2008
Avatar de ixMike
ixMike ixMike is offline
Miembro
 
Registrado: feb 2004
Posts: 1.151
Reputación: 22
ixMike Va por buen camino
En el evento OnKeyPress del segundo edit:

Código Delphi [-]
procedure TForm1.Edit2KeyPress(Sender: TObject; var Key: Char);
begin
If key=#13 then Label1.Caption:=IntToStr(StrToInt(Edit1.Text)+StrToInt(Edit2.Text));
end;

Salu2
Responder Con Cita