Textfield ignore entry

Hi, in VB6, i cam block some entryes using KeyAscII=0 like this:

Private Sub Text1_KeyPress(KeyAscii As Integer) Select Case KeyAscii Case 48 To 57, 8, 44, 45 Case Else KeyAscii = 0 'something in xojo? End Select End Sub

There are similar command in xojo?

Yes. Use the KeyDown event handler to check the key and return True to block it.