Roger,
The messagebox is a modal dialog that waits for the user to dismiss it.
The only way you will be able to shut it down is to find the windows handle,
and send a message to it (which isn't the easiest to find).
You might want to think of some sort of event notification that fires
when your thread is done processing, as well as some custom display that you
can easily hide/dispose of when the event notification is fired.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Roger" <so*****@microsoft.com> wrote in message
news:eL**************@TK2MSFTNGP11.phx.gbl...
Hi:
I'm running a thread that displays a messagebox. I want the messagebox to
close when the thread aborts, but I've had no luck in doing so. A simple
call to thread.abort doesn't work. Anyone know what I may be doing wrong?