Browse Source

解决弹出窗体闪屏问题

zhouxianguang 5 years ago
parent
commit
2255a2a90d
1 changed files with 12 additions and 0 deletions
  1. 12 0
      WinBox/CloseForm.cs

+ 12 - 0
WinBox/CloseForm.cs

@@ -76,5 +76,17 @@ namespace WinBox
                 {
                 }
         }
+
+        protected override CreateParams CreateParams
+        {
+            get
+            {
+                CreateParams cp = base.CreateParams;
+
+                cp.ExStyle |= 0x02000000;
+
+                return cp;
+            }
+        }
     }
 }