VB .Net : how to validate textbox to get only alphabets a-z , A-Z...Pls help me
warne
0
Newbie Poster
Recommended Answers
Jump to Postto valid textboxes write the code in keypress event
likeprivate sub textbox1_keypress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles textbox1.KeyPress Dim KeyAscii As Integer KeyAscii = Asc(e.KeyChar) Select Case KeyAscii case 65 to 90 ''for capital ALPHABET A case 97 to122 case else keyascii=0 End …
Jump to Postthen add the KEYASCII value of enter and backspace
that iscase 13 case 8
in that code it will run if your problem is solved mark thread as a solve .
All 7 Replies
pritesh2010
30
Posting Whiz in Training
warne
0
Newbie Poster
pritesh2010
30
Posting Whiz in Training
krish12
0
Newbie Poster
Sangavi
0
Newbie Poster
Sangavi
0
Newbie Poster
Netcode
33
Veteran Poster
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.