如何在我的 WinForm 应用程序的主窗体中判断是否有任何打开的模式窗口/对话框属于主窗体?
最佳答案
if (this.Visible && !this.CanFocus)
{
// modal child windows are open
}
关于c# - 表单可以判断是否有打开的模态窗口吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/409945/
如何在我的 WinForm 应用程序的主窗体中判断是否有任何打开的模式窗口/对话框属于主窗体?
最佳答案
if (this.Visible && !this.CanFocus)
{
// modal child windows are open
}
关于c# - 表单可以判断是否有打开的模态窗口吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/409945/
相关文章:
c# - WPF C# : Rearrange items in listbox via drag and drop
c# - ZXing Barcode ImageView不显示生成的条形码Xamarin Forms
c# - 创建 JWT, header 中不包含 child
.net - 如何将 .NET 控制台应用程序转换为 Winforms 或 WPF 应用程序
.net - 是否有一个对话框可以同时选择多个文件和文件夹的混合?
c# - 无法分配 RepeatedField 类型的属性或索引器 — 它是只读的
c# - .NET 属性网格 : Varying Read/Write rights for a complex object using ExpandableObjectConverter