Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

bloquer et autoriser des évènements

2 réponses
Avatar
thierry
hello, sur un simple textbox, je vodrais pouvoir autoriser l'évènement
change en fonction de certains critères, où bien bloquer cet évènement.

Une idée?

cdt


Thierry

2 réponses

Avatar
LE TROLL
Salut,

En utilisant les évènements:

Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
select case keycode
case x : comportement
case y : comportement
end select
End Sub

Sub Text1_KeyPress(KeyAscii As Integer)
select case keyascii
case x : comportement
case y : comportement
end select
End Sub

Tu peux canaliser la saisie...
-----------------

"thierry" a écrit dans le message de
news:


hello, sur un simple textbox, je vodrais pouvoir autoriser
l'évènement
change en fonction de certains critères, où bien bloquer
cet évènement.

Une idée?

cdt


Thierry


Avatar
ng
Salut,

hello, sur un simple textbox, je vodrais pouvoir autoriser l'évènement
change en fonction de certains critères, où bien bloquer cet évènement.

Une idée?




Utilise un flag booléen.
--
Nicolas G.
FAQ VB : http://faq.vb.free.fr
API Guide : http://www.allapi.net
Google Groups : http://groups.google.fr/
MZ-Tools : http://www.mztools.com/