VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Flexible numbers only textbox Complete control

by Eduardo Quintana (2 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (4 Votes)

Numeric textbox with complete control, including number of decimal places, negative number acceptance, number and position of the negative sign and the decimal separator, automatic replacement of the decimal separator according to the users PC international settings.

Inputs
tbX: the textbox control being controlled KeyAscii: the KeyAscii parameter of the calling textbox (see samples) bolAllowNegativeValues: allows negative values, defaults to true intPrecision: number of digits after the decimal separator, defaults to 2
Assumes
Very simple routine that allow flexible control of the keys accepted in the textbox
Code Returns
No return values
Side Effects
The control of the textbox accepted keys

Rate Flexible numbers only textbox Complete control

Upload

Download this snippet    Add to My Saved Code

Flexible numbers only textbox Complete control Comments

No comments have been posted about Flexible numbers only textbox Complete control. Why not be the first to post a comment about Flexible numbers only textbox Complete control.

Post your comment

Subject:
Message:
0/1000 characters