Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- If e.KeyCode = Keys.Enter And cbmPassportCountry.Text.Trim() <> "" Then
- SendKeys.Send("{tab}")
- Else
- If btnSave.Enabled = True Then
- btnSave.Focus()
- End If
- End If
- Private Sub cbmPassportCountry_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles cbmPassportCountry.KeyDown
- 'If e.KeyCode = Keys.Enter And cbmPassportCountry.Text.Trim() <> "" Then
- If e.KeyCode = Keys.Enter Then
- If btnSave.Enabled = True Then
- btnSave.Focus()
- Else
- SendKeys.Send("{tab}")
- End If
- End If
- End Sub
Add Comment
Please, Sign In to add comment