Hi All,
I am facing problem while displaying the progress bar form on top of application main form.
Let me explain bit more details.
I running the main form through Application.Run (new mainform()) and then for long operation I am showing the progress bar form in dowork event of background worker thread, like Application.Run (new Progressbarform ()).
Now the problem is that progressbar form will appear infront of other application as well.
So passed the main form through background worker thread like below
Now the progressbar form is not showing consistently means some times progressbar form is visible some time not. what I have noticed is that it's based on mainform thread if mainform thread is busy then it won't appear otherwise it will appear.
Can you please anyone sugesst me how show the progressbar within my mainform?
I am facing problem while displaying the progress bar form on top of application main form.
Let me explain bit more details.
I running the main form through Application.Run (new mainform()) and then for long operation I am showing the progress bar form in dowork event of background worker thread, like Application.Run (new Progressbarform ()).
Now the problem is that progressbar form will appear infront of other application as well.
So passed the main form through background worker thread like below
Code:
Form parentForm = e.Argument as Form; this.progressForm.Owner = parentForm;
Can you please anyone sugesst me how show the progressbar within my mainform?