C# Programming
08-06-2009, 01:52 PM
Hi.
i want to display an gif image in picturebox cuncurrent with for().below is my code,but image dont load while for() is running.
please help me.thanks.
private void button1_Click(object sender, EventArgs e)
{
PictureBox pic = new PictureBox();
pic.Image = Image.FromFile("c:\\1.gif");
this.Controls.Add(pic);
for (int i = 0; i < int.MaxValue; i++)
{
//my work
}
pic.Dispose();
}
i want to display an gif image in picturebox cuncurrent with for().below is my code,but image dont load while for() is running.
please help me.thanks.
private void button1_Click(object sender, EventArgs e)
{
PictureBox pic = new PictureBox();
pic.Image = Image.FromFile("c:\\1.gif");
this.Controls.Add(pic);
for (int i = 0; i < int.MaxValue; i++)
{
//my work
}
pic.Dispose();
}