I am having trouble with with my image downloading program. When I run it, it freezes until all of the images are downloaded. The labels change but picturebox doesn't and I can't even move the program.
foreach (Match m in ms)
{
label3.Text = m.Value;
mastercount++;
pictureBox1.ImageLocation = m.Value;
try
{
WebClient wc = new WebClient();
wc.DownloadFile(m.Value, @downloadDest + "\\"+ mastercount + ".jpeg");
Thread.Sleep(1000);
}
catch (Exception x)
{
label3.Text = "Failed to download image" + m.Value;
}
}