Solved Windows Forms - Please Wait Dialog

Posted on 2014-08-08
Last Modified: 2014-08-08
Hello Experts!
OK, So I have a Windows Application which has process that takes quite a while to run.  I have dialog box that pops up that shows a GIF with Please Wait...

The problem is while I'm waiting, I switch my screen over to my e-mail to check e-mails while it is running.  When I switch back the dialog box is GONE...yet the program is still processing data.  Why is my dialog box disappearing when switching between windows?  How can I make the dialog box stay visible when I switch back from my e-mail screen?

Question by:smithmrk
    LVL 69

    Accepted Solution

    it is probably hidden behind another form. try setting the owner when you call the show method

    Author Comment

    OK, That part two of my question how can I get it to work with a BackgroundWorker since the GIF doesn't really animate very well when I show the dialog on the same thread as the one doing all the work.

    LVL 69

    Expert Comment

    by:Éric Moreau
    that's a different story and I don't really have a clue on that one

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
    Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now