If , Then , Else , etc
Fermé
Lanzo31
Messages postés
83
Statut
Membre
-
irongege Messages postés 38993 Date d'inscription Statut Modérateur Dernière intervention -
irongege Messages postés 38993 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
A voir également:
- If , Then , Else , etc
- Miswiring check wiring then power on ✓ - Forum Autoradio
- Poste JVC,message "Miswiring chk wiring" - Forum Autoradio
- Turn off then on - Forum Matériel & Système
- The realtek network controller was not found. if deep sleep mode is enabled please plug the cable - Forum Pilotes (drivers)
- Carte ethernet deep sleep mode ✓ - Forum Pilotes (drivers)
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