Hey there
so i made this code, and i do not get why my while loop doesn't work, it checks once and then it continues to the next line, this is my code:
private void Timer1_Tick(object sender, EventArgs e)
{
timer++;
if (timer != 65)
{
timerdone = false;
}
else
{
timerdone = true;
Timer1.Stop();
}
}
private void Report_DoWork(object sender, DoWorkEventArgs e)
{
while (timerdone == true)
{
MessageBox.Show("TEST");
}
}
any idea of whats wrong :S?