TO RESTRICT A TEXTBOX FOR ALPHABETS(validation)
TO RESTRICT A TEXTBOX FOR ALPHABETS(validation)
Rate TO RESTRICT A TEXTBOX FOR ALPHABETS(validation)
(2(2 Vote))
'U NEED A FORM and a textbox(text1) for this code to run
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode >= 65 And KeyCode <= 90 Or KeyCode = 8 Or KeyCode = 32 Then
Text1.Locked = False 'keycode=32 for space,8 for backspace
Else
Text1.Locked = True
End If
End Sub
TO RESTRICT A TEXTBOX FOR ALPHABETS(validation) Comments
No comments yet — be the first to post one!
Post a Comment