Ok, I used this code to stop letters from being entered into a txtBox, could someone help me to change this so that Nums cannot be entered.....![]()
VB Code:
Private Sub txtExponent_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) _ Handles txtExponent.KeyPress, txtInput.KeyPress If e.KeyChar Like "[!a-zA-Z]" AndAlso Not e.KeyChar = ControlChars.Back Then e.Handled = True End If End Sub End Class




Reply With Quote