[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1079
  • Last Modified:

VB.net Windows Forms - Please Wait Dialog

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?

Thanks,
Mark
0
smithmrk
Asked:
smithmrk
  • 2
  • 2
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
it is probably hidden behind another form. try setting the owner when you call the show method
0
 
smithmrkAuthor Commented:
OK, That worked...now 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.

Thanks,
Mark
0
 
Éric MoreauSenior .Net ConsultantCommented:
that's a different story and I don't really have a clue on that one
0
 
smithmrkAuthor Commented:
Thanks!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now