You can simply use KeyPress event of the textbox to restrict it to numbers:
Code:Private Sub Text1_KeyPress(KeyAscii As Integer) If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 End If End Sub
|
Results 1 to 6 of 6
Thread: allow numbers only in text boxThreaded View
|
Click Here to Expand Forum to Full Width |