VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Flexible numbers only textbox Complete control

Eduardo Quintana  (2 Submissions)   Custom Controls/Forms/Menus   Visual Basic 3.0   Beginner   Wed 3rd February 2021

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

Returns
No return values

Side Effects
The control of the textbox accepted keys

Rate Flexible numbers only textbox Complete control (4(4 Vote))
Flexible numbers only textbox Complete control.bas

Flexible numbers only textbox Complete control Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters