I am doing a bar cash register and I want to use a if statement to see if fosters button and number 1 on the number pad are both pressed then multiply constant by quantity number
One thing at a time. To detect if 1 was pressed you can use the KeyUp event, you can store this value and check it later when a button is clicked. To detect if a button is clicked use the Click event.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.