by Marco Antonio Alves (3 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (13 Votes)
first, my apologies for my bad english, hehe.
this example demonstrates how to accept only numbers in a textbox control with ONE LINE OF CODE AND FAST CODE. * MUST SEE *
on keypress event of textbox type code bellow:
KeyAscii = IIf(Not KeyAscii = 8 And Not Val((Chr(KeyAscii))) > 0, 0, KeyAscii)
No comments have been posted about Accept only numbers in a text box control with one line of code MUST SEE. Why not be the first to post a comment about Accept only numbers in a text box control with one line of code MUST SEE.