Search Tools Links Login

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

Visual Basic 6, or VB Classic

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 *

Original Author: Marco Antonio Alves


on keypress event of textbox type code bellow:
KeyAscii = IIf(Not KeyAscii = 8 And Not Val((Chr(KeyAscii))) > 0, 0, KeyAscii)

About this post

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


Visual Basic 6


No attachments for this post

Loading Comments ...


No comments have been added for this post.

You must be logged in to make a comment.