I\'m accepting MUG4N\'s answer to this question, and I also want to respond to some of the criticisms that were raised against it.
ChrisF
You need to use multi threading to perform this task in which one thread (the main thread) will do the processing and the other thread will be used to show the messagebox.