i entered this code -
Private Sub EnterButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EnterButton.Click
'set the pin to only three tries
pinTries = pinTries + 1
Dim temp As String
Dim found As Boolean
found = True...
il give that a go..thanks guys. the only other thing im concerned about is the part that allows the groupbox which is called screen to be enabled and visible if the pin and account number is entered correctly. originally it the code was like this ..
While objDR.Read()
'enter both...
i am trying to get it working however i am having little success. do you mean something like this -
'set the pin to only three tries
pinTries = pinTries + 1
Dim temp As String
Dim found As Boolean
found = True
Dim aID As String
Dim correct...
i can see you logic in taking the code in steps like you have said -
If cashpointscreen.Text = objDR.GetString(4) then
' Set the flag for the PIN being correct here.
else
' Set the flag for the PIN being wrong here.
end if
If accountID.Text = objDR.GetString(0) then
' Set...
i have tried placing the exit sub there and it will display the pin part however if the account number is incorrect then it will display no message at all
i agree with what you are saying and i know the code acts the same in situtation 2 and 3 but i really have no clue how to fix the error. i obviously want the correct error to appear when siutation 2 arises and the other error to run when situtation 3 arises. but how i get the code to do this i...
i tried using the exit sub and it didnt solve my problem sorry.
ive reduced the code to the following -
Private Sub EnterButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EnterButton.Click
'set the pin to only three tries
pinTries = pinTries...
by inserting an end sub for example where you said directly after the line "MessageBox.Show(aID)" will that prevent the other from executing because it is essential that this bit of code executes once the user gains access -
If MoneytoTakeOut.Visible = True Then
tempValue =...
this is the entire code for with the end sub -
Private Sub EnterButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EnterButton.Click
'set the pin to only three tries
pinTries = pinTries + 1
Dim temp As String
Dim found As Boolean...
hey guys..
im really new at using vb.net and i have been set a assignment to design a cashpoint machine.
i need an error message to appear when the account number is entered incorrecly, for example error reading card, and i need a error message to appear when user entered incorrect pin number...
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.