“Not Responding” in window title when running in new process

前端 未结 8 1285
清酒与你
清酒与你 2021-02-07 14:39

I have a long running method that must run on UI thread. (Devex - gridView.CopyToClipboard())

I do not need the UI to be responsive while c

8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-07 14:57

    You can use DisableProcessWindowsGhosting win32 function:

    [DllImport("user32.dll")]
    public static extern void DisableProcessWindowsGhosting();
    

    This actually doesn't prevent the window from freezing, but prevents the "Not Respongind" text in the title.

提交回复
热议问题