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
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.