[Gambas-user] Problema with stop event on gb.web.gui

Marco Ancillotti gambas at servinfo.it
Thu Sep 14 16:39:57 CEST 2023


Hi all,

I have a problem using stop event on keypress inside a webtextbox on 
gb.web.gui.

If I made a simple:

Public Sub WebTextBox1_KeyPress()
   If InStr("0123456789", Key.Text) = 0 Then
     Stop Event
   Endif
End

The webtextbox continue to receive all value , also number.

Is this a bug or working with gb.web.gui pretend a different approach to
made a textbox accept only some values ?

Thanks in advance,
Marco.



More information about the User mailing list