daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Nov 15th, 2017 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. If e.KeyCode = Keys.Enter And cbmPassportCountry.Text.Trim() <> "" Then
  2.    SendKeys.Send("{tab}")
  3. Else
  4.    If btnSave.Enabled = True Then
  5.       btnSave.Focus()
  6.    End If
  7. End If
  8.    
  9. Private Sub cbmPassportCountry_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles cbmPassportCountry.KeyDown
  10.     'If e.KeyCode = Keys.Enter And cbmPassportCountry.Text.Trim() <> "" Then
  11.     If e.KeyCode = Keys.Enter Then
  12.         If btnSave.Enabled = True Then
  13.             btnSave.Focus()
  14.         Else
  15.             SendKeys.Send("{tab}")
  16.         End If
  17.     End If
  18.  
  19. End Sub
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top