KeyAscii=0 en VBNET

BasicInstinct Messages postés 1470 Date d'inscription mardi 5 février 2002 Statut Membre Dernière intervention 20 octobre 2014 - 16 avril 2003 à 16:39
BasicInstinct Messages postés 1470 Date d'inscription mardi 5 février 2002 Statut Membre Dernière intervention 20 octobre 2014 - 16 avril 2003 à 17:15
comment fait on pour annuler la frappe dans un textbox ?

exemple, qd le user tape &, je veux afficher 1

en vb6:

if chr(keyascii)="&" then
keyascii=0
montextbox=montextbox & "1"
endif

:clown) BasicInstinct :clown)

2 réponses

cs_Crazyht Messages postés 1522 Date d'inscription mardi 18 décembre 2001 Statut Membre Dernière intervention 21 août 2010 8
16 avril 2003 à 16:48
L'argument eventsArg doit avoir une propriete cancel, il me semble, tu mets a true

A++

Crazyht :)
0
BasicInstinct Messages postés 1470 Date d'inscription mardi 5 février 2002 Statut Membre Dernière intervention 20 octobre 2014 12
16 avril 2003 à 17:15
t'aurais pas 1 exemple stp je trouve pas de propriete Cancel

:clown) BasicInstinct :clown)
0
Rejoignez-nous