?
Solved

VB.net Windows Forms - Popup Dialog Modal USING BackgroundWorker

Posted on 2014-08-08
5
Medium Priority
?
707 Views
Last Modified: 2014-08-12
Hello Experts!

OK, I want to have a popup dialog that has a "Please Wait..." GIF while the program is working on loading data.  I don't want a progress bar as I have one of those on the main screen I just want a small popup dialog box with the animated gif showing Please Wait...

How can I popup the modal dialog box using a BackgroundWorker?

Thanks,
Mark
0
Comment
Question by:smithmrk
  • 3
  • 2
5 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 40249100
You may not be able to use BackgroundWorker for the Gif itself. You can use backgroundworker to do the actual work while the GUI thread is showing the gif. Or you can use a thread to show the gif form using application.run method.
0
 

Author Comment

by:smithmrk
ID: 40249103
Can you give me an example of application. run method?

Thanks,
Mark
0
 

Author Comment

by:smithmrk
ID: 40249300
OK, without using BackgroundWorker...do you have any examples of where I can display the GIF Form have have it reference back to the parent form so that it is Modal...so if the user click into another window and clicks back to the application it will still show the Please Waiting...screen?

Thanks,
Mark
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 2000 total points
ID: 40250523
I think application.run will not make it modal. Have you tried doing your time consuming task in a backgroundworker and letting the UI thread show the gif?
0
 

Author Closing Comment

by:smithmrk
ID: 40255793
Thanks!

Mark
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month15 days, 3 hours left to enroll

840 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