الثلاثاء، 27 سبتمبر 2011

Procédure KeyPress -VB

Cette procédure s’exécute lors de tape sur le clavier
     Private Sub Text1_KeyPress(KeyAscii As Integer)
     End Sub


 KeyAscii est le code ASCII du caracétre tapé
Les codes ASCII:
  * Aucune touche --> KeyAscii =0
  * 0 -->9 : 48--> 57
  * A-->Z : 65-->90  

  *a--> z : 97 -->122
  * Efface Arrière --> 8

EXEMPLE : 
                                           Private Sub Text1_KeyPress(KeyAscii As Integer)
                                             Text2.Text = KeyAscii
                             End Sub

ليست هناك تعليقات:

إرسال تعليق