Here in my code....
List<Task> t;
private void Form1_Load(object sender, EventArgs e)
{
t = new List<Task>();
t.Add(Task.Factory.StartNew(() => Download()));
t.Add(Task.Factory.StartNew(() => Display()));
}
Now in display method when I hide any control it gives me a "cross thread exception" and tell that it is used by main thread.