|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
retail functionWith 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. -- Show quoteHide quoteDennis in Houston "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? > > <baconbits***@gmail.com> wrote in message
news:1139868222.052786.38160@z14g2000cwz.googlegroups.com... Append the key to a separate string variable as you type - but display the> 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? > 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! |
|||||||||||||||||||||||