Private Sub Command1_Click() If Text1.Text = "momo" Then Form2.Show Exit Sub End If If Text1.Text = "bonjour" Then Form3.Show Exit Sub End If MsgBox "C'est pas le bon mots de passe", vbCritical End Sub
Private Sub Command1_Click() Select Case LCase(Text1.Text) Case "momo" Form2.Show Case "bonjour" Form3.Show Case Else MsgBox "C'est pas le bon mot de passe", vbCritical End Select End Sub
Select Case text1.text Case "momo" form2.show Case "bonjour" form3.show Case Else msgbox "Ce n'est pas le bon mot de passe", vbcritical, "" End Select
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question