[RESOLVED] [2005] Topmost problem
Hi
I'm trying to display a progress bar in my application when the user loads a report (Crystal report). I call the form containing the progress bar just before the form containing the reportviewer is called. So the progress bar displays while the reportviewer form is loading. However once the reportviewer form becomes visible, it hides the progress bar form, even though it sometimes takes another few seconds for the actual report to show up.
I've set the Topmost property to True on the progress bar form but it is still not showing on top of the reportviewer form.
Please can anyone help?
Re: [2005] Topmost problem
Check out the BringToFront method.
Re: [2005] Topmost problem
Quote:
Originally Posted by circuits2
Check out the BringToFront method.
I've tried that, it doesn't work! :cry:
Re: [2005] Topmost problem
Did you set the TopMost property of the ReportViewer form to False?
Re: [2005] Topmost problem
Quote:
Originally Posted by circuits2
Did you set the TopMost property of the ReportViewer form to False?
it was already set to false by default.
Re: [2005] Topmost problem
I'm going to assume that because you are having this much trouble then you are not using a BackgroundWorker. If I am correct, then your progress bar will not work anyways because it is being executed in the same thread. Search the forum for Progress bars and you will find some good info for VS2005.
Re: [2005] Topmost problem
Quote:
Originally Posted by circuits2
I'm going to assume that because you are having this much trouble then you are not using a BackgroundWorker. If I am correct, then your progress bar will not work anyways because it is being executed in the same thread. Search the forum for Progress bars and you will find some good info for VS2005.
Ah right.... that makes sense! I've never heard of a BackgroundWorker so I guess I'm not using one!! ;) I'll read up about it, thanks Circuits2!
Re: [2005] Topmost problem
Please be sure to mark the thread Resolved. Best of luck!