procedure TForm11.Edit2KeyPress(Sender: TObject; var Key: Char); begin Label1.Caption:=Edit1.Text; end;