Results 1 to 8 of 8

Thread: [RESOLVED] [2005] Topmost problem

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    96

    Resolved [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?

  2. #2
    Frenzied Member circuits2's Avatar
    Join Date
    Sep 2006
    Location
    Kansas City, MO
    Posts
    1,027

    Re: [2005] Topmost problem

    Check out the BringToFront method.
    Show the love! Click (rate this post) under my name if I was helpful.

    My CodeBank Submissions: How to create a User Control | Move a form between Multiple Monitors (Screens) | Remove the MDI Client Border | Using Report Viewer with Visual Studio 2012 Express

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    96

    Re: [2005] Topmost problem

    Quote Originally Posted by circuits2
    Check out the BringToFront method.
    I've tried that, it doesn't work!

  4. #4
    Frenzied Member circuits2's Avatar
    Join Date
    Sep 2006
    Location
    Kansas City, MO
    Posts
    1,027

    Re: [2005] Topmost problem

    Did you set the TopMost property of the ReportViewer form to False?
    Show the love! Click (rate this post) under my name if I was helpful.

    My CodeBank Submissions: How to create a User Control | Move a form between Multiple Monitors (Screens) | Remove the MDI Client Border | Using Report Viewer with Visual Studio 2012 Express

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    96

    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.

  6. #6
    Frenzied Member circuits2's Avatar
    Join Date
    Sep 2006
    Location
    Kansas City, MO
    Posts
    1,027

    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.
    Show the love! Click (rate this post) under my name if I was helpful.

    My CodeBank Submissions: How to create a User Control | Move a form between Multiple Monitors (Screens) | Remove the MDI Client Border | Using Report Viewer with Visual Studio 2012 Express

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    96

    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!

  8. #8
    Frenzied Member circuits2's Avatar
    Join Date
    Sep 2006
    Location
    Kansas City, MO
    Posts
    1,027

    Re: [2005] Topmost problem

    Please be sure to mark the thread Resolved. Best of luck!
    Show the love! Click (rate this post) under my name if I was helpful.

    My CodeBank Submissions: How to create a User Control | Move a form between Multiple Monitors (Screens) | Remove the MDI Client Border | Using Report Viewer with Visual Studio 2012 Express

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width