jamie_pattison
Well-known member
- Joined
- Sep 9, 2008
- Messages
- 116
- Programming Experience
- Beginner
The below code allows me to prevent a textbox to only allow numerics, backspace. I would also like to have the textbox to accept ":", but struggling to find the correct way to do this. Could anyone advise? Below code is in the Keypress event.
Thanks
Thanks
VB.NET:
If Not Char.IsDigit(e.KeyChar) Then
If Not e.KeyChar = vbBack Then
?????????????
End If
End If