开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜