回答編集履歴

2

Activate() も入れたほうが良さそう

2019/09/20 00:15

投稿

KOZ6.0
KOZ6.0

スコア2707

test CHANGED
@@ -92,7 +92,13 @@
92
92
 
93
93
  MouseHookEnd();
94
94
 
95
+ BeginInvoke((Action)(() => {
96
+
95
- BeginInvoke((Action<IntPtr>)NativeMethods.Active, Handle);
97
+ NativeMethods.Active(Handle);
98
+
99
+ Activate();
100
+
101
+ }));
96
102
 
97
103
  }
98
104
 

1

NativeMethods.Active を BeginInvoke

2019/09/20 00:15

投稿

KOZ6.0
KOZ6.0

スコア2707

test CHANGED
@@ -92,7 +92,7 @@
92
92
 
93
93
  MouseHookEnd();
94
94
 
95
- NativeMethods.Active(this.Handle);
95
+ BeginInvoke((Action<IntPtr>)NativeMethods.Active, Handle);
96
96
 
97
97
  }
98
98