Home All Groups Group Topic Archive Search About
Author
13 Feb 2006 10:03 PM
baconbits420@gmail.com
With VB.Net 2005
I am trying to use an onscreen 10-key pad to enter a price into a
textbox.  When a number is entered, i want it to act like a  normal
cash register would;  the last number entered will be the second number
after the decimal place.  I want to enter $10.00 by pressing only
1-0-0-0.  Any suggestions?  i noticed you can't try to watch the
keystrokes and formatCurrency each time.  Can someone point me in the
right direction?

Author
14 Feb 2006 12:18 AM
Dennis
You might look at the RightToLeft Property of the Textbox...I've never used
it but it might work.
--
Dennis in Houston


Show quoteHide quote
"baconbits***@gmail.com" wrote:

> With VB.Net 2005
> I am trying to use an onscreen 10-key pad to enter a price into a
> textbox.  When a number is entered, i want it to act like a  normal
> cash register would;  the last number entered will be the second number
> after the decimal place.  I want to enter $10.00 by pressing only
> 1-0-0-0.  Any suggestions?  i noticed you can't try to watch the
> keystrokes and formatCurrency each time.  Can someone point me in the
> right direction?
>
>
Author
14 Feb 2006 12:24 AM
Hal Rosser
<baconbits***@gmail.com> wrote in message
news:1139868222.052786.38160@z14g2000cwz.googlegroups.com...
> With VB.Net 2005
> I am trying to use an onscreen 10-key pad to enter a price into a
> textbox.  When a number is entered, i want it to act like a  normal
> cash register would;  the last number entered will be the second number
> after the decimal place.  I want to enter $10.00 by pressing only
> 1-0-0-0.  Any suggestions?  i noticed you can't try to watch the
> keystrokes and formatCurrency each time.  Can someone point me in the
> right direction?
>
Append the key to a separate string variable as you type - but display the
results of dividing that number by 100 (rounded to the nearest 2 decimals.)
Author
14 Feb 2006 4:38 PM
J-Rod
thank you for the insight.  I don't know why i didn't think of
something so easy.  My way of breaking the string down was way harder.
Thanks again!