VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Numeric only textbox in one line of code which works! Textbox will accept only numbers.

by Philip Crown (2 Submissions)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 21st July 2009
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Numeric only textbox in one line of code which works! Textbox will accept only numbers.

API Declarations


'numeric textbox only in one line of code which works!

Rate Numeric only textbox in one line of code which works! Textbox will accept only numbers.



If Not IsNumeric(Text1.Text) Then Text1.Text = ""
End Sub


Download this snippet    Add to My Saved Code

Numeric only textbox in one line of code which works! Textbox will accept only numbers. Comments

No comments have been posted about Numeric only textbox in one line of code which works! Textbox will accept only numbers.. Why not be the first to post a comment about Numeric only textbox in one line of code which works! Textbox will accept only numbers..

Post your comment

Subject:
Message:
0/1000 characters