0

I have a text box in which i don't want decimal, so I am restricting user to key in decimal by checking in keydown event. However, this is causing issue with ">" sign as user is not able to enter ">" sign in text box.

If Not e.Handled AndAlso e.Key = Key.Decimal OrElse e.PlatformKeyCode = 190 OrElse e.PlatformKeyCode = 110 Then
        If e.Key <> Key.Back Then
            e.Handled = True
        End If
End If

Any inputs how can i solve?

SamM
  • 1
  • 1
  • 3

0 Answers0