So I have this little bit of code here...
private void button1_Click(object sender, EventArgs e)
{
if (textBox2.Text==("Tim The Enchanter") && textBox1.Text==("cave100"))
{
label2.Visible = true;
label2.Text = ("Correct");
label2.ForeColor = System.Drawing.Color.Green;
System.Threading.Thread.Sleep(1000);
this.Hide();
Form2 form2 = new Form2();
form2.Visible = true;
}
}
It is basically a very primitive login screen!
Everything works except for the fact that the form changes to form2 before the label2 text can be seen. I tried to fix this by adding a system wait comand but instead this comes through before the text can be displayed. Once again I am back to where I started.
Any help would be appreciated!