Status Messageboxes going behind the application
I have a situation like this..I have a windows appli开发者_运维技巧cation (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
try:
MessageBox.Show(this,"Your Message");
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.
精彩评论