explain in detail im new lol
I want to add multiple passwords on my program. what do i add to do that? im coding it like a key
here is the code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox1.Text = "123" Then
MsgBox("Correct!", MsgBoxStyle.Information, "correct key")
Form2.Show()
Else
MsgBox("wrong key!", MsgBoxStyle.Critical, "Error")
Me.Close()
End If
41 minutes ago - 4 days left to answer.
Additional Details
can you explain that more? like in more detail? im kinda new sorry
Copyright © 2024 QUIZLS.COM - All rights reserved.
Answers & Comments
Verified answer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox1.Text = "123" Then
MsgBox("Correct!", MsgBoxStyle.Information, "correct key")
Form2.Show()
Else If TextBox1.Text = "456" Then
MsgBox("Correct!", MsgBoxStyle.Information, "correct key")
Form2.Show()
Else If TextBox1.Text = "abc" Then
MsgBox("Correct!", MsgBoxStyle.Information, "correct key")
Form2.Show()
Else If TextBox1.Text = "xyz" Then
MsgBox("Correct!", MsgBoxStyle.Information, "correct key")
Form2.Show()
Else
MsgBox("wrong key!", MsgBoxStyle.Critical, "Error")
Me.Close()
End If