473,396 Members | 1,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

message boxes don't dissappear

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()
Nov 21 '05 #1
3 896
"Robert Smith" <Ro*********@discussions.microsoft.com> schrieb:
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?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #2
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

"Herfried K. Wagner [MVP]" wrote:
"Robert Smith" <Ro*********@discussions.microsoft.com> schrieb:
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?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #3
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"
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

"Herfried K. Wagner [MVP]" wrote:
"Robert Smith" <Ro*********@discussions.microsoft.com> schrieb:
> 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?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Dustin | last post by:
Here's what I am trying to do: (Names represent CSS classes.) I want to create a photo gallery. I want the entire gallery to be surrounded by a box named PhotoGallery. I want a fluid placement...
2
by: John Kreps | last post by:
(acc 2002) I've got six unbound text boxes on a subform that has a white background. Each of those six boxes has an expression that when true, will change its background from white to another...
3
by: Andrew Baker | last post by:
OK this has me perplexed, puzzled and bamboozled! I have a remoting service which I displayed a message box in. I then wondered what would happen if a client made a call to the service while the...
11
by: Edson Peacock | last post by:
I have a report with sub reports, one of the subreports have 12 text boxes that are 2" high and I want them all to grow if one goes to 3" high. If anyone has any suggestions they are very much...
0
by: Tom | last post by:
I have some very strange issues with combo boxes on a tab control. Here's the scenario: I have a Windows Forms form that has a tab control on it, with two (2) tabs. Tab 2 happens to have a number...
3
by: Jason | last post by:
Hi, I built a vb.Net application that creates ICS calendar files dynamically and then sends them to the client browser as a downloadable file. Works perfectly except in the following situation....
2
by: vibee | last post by:
this might be a simple question but how do i assign values to a check box in a query condition, i have the following so far: Required: IIf(="existing",True,False) The problem is the check boxes...
2
by: =?Utf-8?B?TmF0aGFuIFdpZWdtYW4=?= | last post by:
Hi, I am wondering why the .NET Framework is quite different from Win32 API when it comes to displaying system modal message boxes. Consider the four following types of system modal message...
0
by: kylancal | last post by:
When I launch a new instance of Excel from Visual Basic, my add ins don't work. I need to remove them and add them back in through code. This is very annoying as a button pops up alerting me that...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.