Code Asci

Résolu
Fabal01 Messages postés 48 Date d'inscription lundi 11 mai 2009 Statut Membre Dernière intervention 8 janvier 2010 - 4 juin 2009 à 13:58
Bacterius Messages postés 3792 Date d'inscription samedi 22 décembre 2007 Statut Membre Dernière intervention 3 juin 2016 - 5 juin 2009 à 19:41
Salut,est-ce que quelqu'un poura me donner le code ASCI de la touche Entrée du clavier.Merci

11 réponses

f0xi Messages postés 4205 Date d'inscription samedi 16 octobre 2004 Statut Modérateur Dernière intervention 12 mars 2022 35
4 juin 2009 à 17:30
uses Unit2;

procedure TForm1.FormKeyPress(Sender: TObject; var Key: Char);
begin
  if Key = #13 then
    Form2.show;
end;







ou encore

uses Unit2;

procedure TForm1.FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
begin
  if Key = VK_RETURN then
    Form2.Show;
end;

<hr size="2" width="100%" />
3
Rejoignez-nous