Vb code for validating textbox
Handled = True End If End Sub Private Sub Text Box_Text Changed(By Val sender As Object, By Val e As System. Text Changed Dim digits Only As Regex = New Regex("[^\d]") Text Box.
Search for vb code for validating textbox:
Then a combination of 'Shift' key and 'Number' keys (which denotes Symbols) also not needed. Hence all these are included in the Text Box declaration itself which produces the desired result.