Dri60
Messages postés68Date d'inscriptionlundi 24 décembre 2007StatutMembreDernière intervention17 novembre 2008
-
15 mars 2008 à 17:25
Dri60
Messages postés68Date d'inscriptionlundi 24 décembre 2007StatutMembreDernière intervention17 novembre 2008
-
16 mars 2008 à 17:23
Bonjour, j'ai ce code :
Private
Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click IfNot TextBox_bv1.Text = Form1.Lbl_BV1.Text Then
MsgBox("La Base Verbale n°1 est Fausse !", MsgBoxStyle.Exclamation)
TextBox_bv1.Text = ""
EndIf
IfNot TextBox_bv1.Text = "" Then MsgBox("Bravo, Vous avez retenu les 5 Verbes !", MsgBoxStyle.Information)
EndSub
Comment faire pour que si la 1e condition est Bonne, ne pas passer à la 2e ? Merci.
Dri60
A voir également:
Si une Condition est Bonne, ne pas passer à la Suite
Kristof_Koder
Messages postés918Date d'inscriptionvendredi 3 août 2007StatutMembreDernière intervention27 octobre 200810 16 mars 2008 à 16:31
Ou comme ca ...
If Not TextBox_bv1.Text = Form1.Lbl_BV1.Text Then
MsgBox("La Base Verbale n°1 est Fausse !", MsgBoxStyle.Exclamation)
TextBox_bv1.Text = ""
ElseIf Not TextBox_bv1.Text = "" Then
MsgBox("Bravo, Vous avez retenu les 5 Verbes !", MsgBoxStyle.Information)
End if