在C#中的非自动分组提示消息框 [英] Non-autoblocking MessageBoxes in c#
本文介绍了在C#中的非自动分组提示消息框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都知道一个消息在.NET这不会阻止创建它,直到它关闭?螺纹
Anyone know a messageBox in .NET that doesn't block the thread that created it untill it's closed ?
推荐答案
默认的MessageBox
您是通过 System.Windows.Forms的使用
命名空间永远是模态(即阻止)。如果你想有一个无模式消息框,您应该创建自己的 WindowsForm
看起来像的MessageBox
。
The default MessageBox
which you are using through System.Windows.Forms
namespace will always be Modal (i.e., Blocking). If you want to have a Modeless message box, you should create your own WindowsForm
that looks like a MessageBox
.
您便会显示该表如下:
// C#
//Display frmAbout as a modeless dialog
Form f= new Form();
f.Show();
这篇关于在C#中的非自动分组提示消息框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文