Q:

How do I make Label1 appear if a TextBox has the correct password, and make Label2 appear if it does not?

Okay the title states it all, so my current code is this:
If TextBox1.Text = ("mypassword") Then
    Form2.Show()
End If
Timer1.Start()

Threading.Thread.Sleep(5000)

If TextBox1.Text = ("mypassword") Then
    Label1.Visible = True
End If

How do I make my program check if the TextBox1.text contains "mypassword" and if it does it displays Label1 which contains "approved" and if it doesn't say "mypassword" it = label2 and displays "not approved". Obviously this is dumbed down so the question makes sense.

A:

From what I remember of VBA, this should work:
If TextBox1.Text = ("mypassword") Then
    Label1.Visible = True
Else
    Label2.Visible = True
End If

But you might want to consider whether you really want to use two labels for this. I'd recommend using one label and changing its .Text value:
If TextBox1.Text = ("mypassword") Then
    Label1.Text = "Approved"
Else
    Label1.Text = "Not Approved"
End If

