views:

19

answers:

2

I have a situation like this..I have a windows application (Single threaded) that has one main form. After performing some operation, I'll get a message "Operation completed successfully" But most of the time it goes behind my application and hence it is not visible. Any idea why this is happening ?

Thanks in Advance

A: 

Be sure to use an overloaded method for MessageBox.Show that takes an IWin32Window and pass the currently visible form that you want your message box to appear on as parameter.

Jim Brissom
+1  A: 

try:

MessageBox.Show(this,"Your Message");
TheVillageIdiot