If i have a method that does something like this
if (ab)
{
//dostuff
}
else if (b)
{
//dostuff
}
else if (c)
{
//do stuff.
}
And each closes the currently open form, and redisplays a new form with different data. How can i wrap each with a form that displays a loading bar just to let the user no something is loading.
I cant open the loading form in the new thread because the progress bar doesnt progress and it seems silly ot have 3 different background workers with do work methods which al ldo the same thing .
thanks