Tools Links Login

Accept only numbers in a text box control with one line of code UPDATED * MUST SEE*

first, my apologies for my bad english. hehe.
i updated my code to accept only numbers in a textbox. removed the bug of the another code. sorry by the another. hehe. but this code work

Original Author: Marco Antonio Alves

Code

type code bellow into a keypress event of a textbox control
KeyAscii = IIf(Not KeyAscii = 8 And Not IsNumeric(Chr(KeyAscii)), 0, KeyAscii)

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 100 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.