retail function

  • Thread starter Thread starter baconbits420
  • Start date Start date
B

baconbits420

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?
 
You might look at the RightToLeft Property of the Textbox...I've never used
it but it might work.
 
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.)
 
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!
 
Back
Top