Skip to content

Planet-Source-Code/marco-antonio-alves-accept-only-numbers-in-a-text-box-control-with-one-line-of-code-update__1-27894

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

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

Description

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

More Info

Submitted On
By Marco Antonio Alves
Level Beginner
User Rating 4.0 (28 globes from 7 users)
Compatibility VB 6.0
Category Coding Standards
World Visual Basic
Archive File

Source 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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published