I want to make a TextBox control that only accepts numerical values.
How can I do this in VB6?
i usually use this code:
Private Sub text1_KeyPress(KeyAscii As Integer) If Not IsNumeric(text1.Text & Chr(KeyAscii)) And Not KeyAscii = 8 Then KeyAscii = 0 End Sub