If , Then , Else , etc
Résolu
Bonjour,
je voudrais 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
Merci cordialement Lanzo
je voudrais 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
Merci cordialement Lanzo