Private Sub txtuser_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtuser.KeyDown If e.KeyCode = Keys.Enter Then If txtuser.Text.Length = 0 Then MessageBox.Show("Ce champ est obligatoire. Veuillez le remplir.", "Madrassati", MessageBoxButtons.OK, MessageBoxIcon.Information) Else txtpass.Focus() End If ElseIf e.KeyCode = Keys.Tab Then MessageBox.Show("Pour atteindre le champ suivant, veuillez cliquez sur ENTRER", "toto", MessageBoxButtons.OK, MessageBoxIcon.Information) End If End Sub
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question