怎么样,是我的WinForm的应用程序的主窗口中我可以告诉大家,如果有属于主窗体的任何模态窗口/对话框打开?
解决方案 如果(THIS.VISIBLE&安培;&安培;!this.CanFocus)
{
//模式子窗口打开
}
How, being inside the main form of my WinForm app can I tell if there are any modal windows/dialogs open that belong to the main form?
解决方案if (this.Visible && !this.CanFocus)
{
// modal child windows are open
}