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
What I would try is call the MessageBox function from the Win32 API directly, like :
using System.Runtime.InteropServices;
[DllImport("User32.dll")]
public static extern int MessageBox(int h, string m, string c, int type);
Try using a null handle, and the APPLMODAL type. That may work.
What about adding a NotifyIcon to your application and displaying a balloon tip? The down side is that the notification will disappear after a short time, but maybe that's best for your users if they don't need to take action.
There are more suggestions on this question.
It's an old question, but nevertheles...
1) Import IWshShell ('Windows Script Host Object Model')
Dim wsh As New IWshRuntimeLibrary.WshShell wsh.Popup(String.Concat(Me.GetType.FullName, vbCrLf, _ Application.ExecutablePath), 0.75, "Title", MessageBoxButtons.OKCancel Or MessageBoxIcon.Question)
Jens...
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.