Before you start it's just a game not a virus.
My goal is when when progressbar
reaches 1% put the text as downloading virus and when it reaches 50% put the text as installing virus but instead it changes immediately to installing virus .
This is the code so far:
Timer t = new Timer();
private void LetTheGameStart_Load(object sender, EventArgs e)
{
timer1.Enabled = true;
timer1.Start();
timer1.Interval = 1000;
progressBar1.Maximum = 10;
timer1.Tick += new EventHandler(timer1_Tick);
}
void timer1_Tick(object sender, EventArgs e)
{
{
if (progressBar1.Value != 100)
{
progressBar1.Value++;
label2.Text = "Downloading Virus";
}
}
if (progressBar1.Value != 50)
{
label2.Text = "installing Virus";
}
}