I want to make a TextBox control that only accepts numerical values.
How can I do this in VB6?
If Len(Text2.Text) > 0 Then If IsNumeric(Text2.Text) = False Then Text2.SetFocus CreateObject("WScript.Shell").SendKeys "{BACKSPACE}" End If End If