hi,
this is the code that i use to press enter. how do i make that enter to be pressed only once not more than that. PLEASE HELP!!!
Private Sub frmPasscode_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress
blnPwdFromKeyboard = True
If Char.IsNumber(e.KeyChar) Then
Select Case Microsoft.VisualBasic.Val(e.KeyChar)
Case 0 : DisplayKey(lbl0)
Case 1 : DisplayKey(lbl1)
Case 2 : DisplayKey(lbl2)
Case 3 : DisplayKey(lbl3)
Case 4 : DisplayKey(lbl4)
Case 5 : DisplayKey(lbl5)
Case 6 : DisplayKey(lbl6)
Case 7 : DisplayKey(lbl7)
Case 8 : DisplayKey(lbl8)
Case 9 : DisplayKey(lbl9)
End Select
ElseIf Asc(e.KeyChar) = 8 Then
DisplayKey(lblBackSpace)
ElseIf e.KeyChar = Chr(13) Then
picYes_MouseUp(Nothing, Nothing)
End If
End Sub