VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Validating Textbox ,Accepts only Aphabets, Numbers and _.Will not allow any control key,Functiona

by Satheesh (2 Submissions)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 17th July 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Validating Textbox ,Accepts only Aphabets, Numbers and "_".Will not allow any control key,Functional key , special key

Rate Validating Textbox ,Accepts only Aphabets, Numbers and _.Will not allow any control key,Functiona



                Case "0" To "9"
                    ' do nothing
                Case "a" To "z"
                    'do nothing
                Case "A" To "Z"
                    'do nothing
                Case "_"
                    'do nothing
                Case ""
                    'do nothing
                Case " "
                    KeyAscii = 0
                Case Else
                    KeyAscii = 0
                    Exit Sub
            End Select

Download this snippet    Add to My Saved Code

Validating Textbox ,Accepts only Aphabets, Numbers and _.Will not allow any control key,Functiona Comments

No comments have been posted about Validating Textbox ,Accepts only Aphabets, Numbers and _.Will not allow any control key,Functiona. Why not be the first to post a comment about Validating Textbox ,Accepts only Aphabets, Numbers and _.Will not allow any control key,Functiona.

Post your comment

Subject:
Message:
0/1000 characters