hi, im a student and currently assigned to create a user form project for C#.
1st is there are 2 textboxes, one is to input employee ID then to PIN
PIN is after u input employee ID,
example employee ID is from 1 - 200 range, then PIN generated from the ID which calculates ID * 13 then / 4.
But as easy as this, however i made buttons (some sort of a calculator) which to input onto both textboxes
meaning
buttons 0 - > 9 serves 2functions one of ID then it goes to PIN (i've solved that)
but im stuck with the enterButton which also serves 2functions as such, employee ID then once hit enter and meets the requirements (ID > 0 <= 200), then the other enter function is for after entering employee ID and PIN if-else statements if its correct then a Label shows "Door opened" else 3 tries before it alerts the police. But im having a problem here as it keeps looping back due to (Enter button has 2 functions/purposes) anyone care to help me out?
http://img171.imageshack.us/img171/4200/projfw9.jpg