Don't try to invoke until the handle is created (is this the WRONG way to do this\?)
This commit is contained in:
parent
b856245180
commit
e0b032c7ef
@ -75,6 +75,10 @@ namespace UniversalEditor.UserInterface.WindowsForms
|
||||
|
||||
internal void InvokeClose()
|
||||
{
|
||||
while (!this.IsHandleCreated)
|
||||
{
|
||||
System.Threading.Thread.Sleep(500);
|
||||
}
|
||||
Invoke(new Action(_InvokeClose));
|
||||
}
|
||||
private void _InvokeClose()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user