If , Then , Else , etc
Fermé
Lanzo31
Messages postés
62
Date d'inscription
Statut
Membre
Dernière intervention
-
irongege Messages postés 41001 Date d'inscription Statut Modérateur Dernière intervention -
irongege Messages postés 41001 Date d'inscription Statut Modérateur Dernière intervention -
Bonjour,
je veut que quand on appui sur un button il verifie le texte entrée dans la TextBox et que si le texte est bon il fait apparaitre une autre Form voici mon code qui ne marche pas :
If TextBox1("Pierre a 21 ans") Then
Form2.Show()
Me.Close()
Else : MsgBox("Your command is false !", MsgBoxStyle.Critical, )
End If
je veut que quand on appui sur un button il verifie le texte entrée dans la TextBox et que si le texte est bon il fait apparaitre une autre Form voici mon code qui ne marche pas :
If TextBox1("Pierre a 21 ans") Then
Form2.Show()
Me.Close()
Else : MsgBox("Your command is false !", MsgBoxStyle.Critical, )
End If
1 réponse
Lut
If TextBox1("Politesse") Then
Reponse..Show()
No.Close()
Else : MsgBox("Lire la charte de CCM")
End If
If TextBox1("Politesse") Then
Reponse..Show()
No.Close()
Else : MsgBox("Lire la charte de CCM")
End If