I would Like to Use this code after you have clicked into your textbox
And I am Edwin Have a good Time
Coding a TextBox Leaving The Backspace And Spacebar Working
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
Select Case Asc(e.KeyChar)
Case 8, 32, 65 To 90, 97 To 122
e.Handled = False
Case Else
e.Handled = True
MsgBox("Please Input Letters Only!!!!!")
End Select
End Sub
Reverend Jim 4,968 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
rproffitt 2,662 "Nothing to see here." Moderator
Dani 4,329 The Queen of DaniWeb Administrator Featured Poster Premium Member
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.