i developed a C# application. while running that i switch to another window in my system then application went in to not responding mode but back ground process is running.. I have a progressBar in that application. i need to see the status,how far it is complete..
progressBar1.Visible = true;
progressBar1.Maximum = dt.Rows.Count;
if (dt.Rows.Count > 0)
{
for (int i = 0; i < dt.Rows.Count; i++)
{
-----
----
-----
progressBar1.Value = i;
if (progressBar1.Value == progressBar1.Maximum - 1)
{
MessageBox.Show("Task completed");
progressBar1.Visible = false;
}
}
}