message boxes don't dissappear

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
I have a message box that appears b4 a thread is started off, however
when Yes or No is answered to the message box the message box does not
dissappear, in fact it appears with a ghost like image in the foreground. is
there anyway of getting around this issue and getting rid of the pesky
message box in the first place. The msgbox is not kicked off in a form but in
a module if this makes any difference.

If MsgBox("would you liek to restore the db", MsgBoxStyle.YesNo, Title) =
MsgBoxResult.Yes Then
Me.Refresh()
thrRestore = New Thread(AddressOf RestoreDb)
thrRestore.IsBackground = True
thrRestore.Start()

thrRestore.Join()
 
Robert Smith said:
I have a message box that appears b4 a thread is started off, however
when Yes or No is answered to the message box the message box does not
dissappear, in fact it appears with a ghost like image in the foreground.
is
there anyway of getting around this issue and getting rid of the pesky
message box in the first place. The msgbox is not kicked off in a form but
in
a module if this makes any difference.

Do you show the messagebox in the app's main UI thread?
 
Hi Herfried,
Yeah the message box is in the main ui thread. However there is
another message box later on inside my own thread which does the same thing.

Regards
Robert
 
Robert/Geraldine,

Yesterday was almost the same question, it was solved with a
application.doevents direct after the Then

Maybe it goes with you as well

Cor

"Geraldine Hobley"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top