VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Numeric only textbox in one line of code in which backspace and delete key works. Textbox will acce

by Suman Bhattacharjee (1 Submission)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 8th June 2009
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Numeric only textbox in one line of code in which backspace and delete key works. Textbox will accept only numbers.

API Declarations


'numeric textbox only in one line of code with backspace key works!

Rate Numeric only textbox in one line of code in which backspace and delete key works. Textbox will acce



    If Not KeyAscii = vbKeyBack And Not IsNumeric(Chr(KeyAscii)) Then _
    KeyAscii = 0
End Sub


Download this snippet    Add to My Saved Code

Numeric only textbox in one line of code in which backspace and delete key works. Textbox will acce Comments

No comments have been posted about Numeric only textbox in one line of code in which backspace and delete key works. Textbox will acce. Why not be the first to post a comment about Numeric only textbox in one line of code in which backspace and delete key works. Textbox will acce.

Post your comment

Subject:
Message:
0/1000 characters