I have a long running method that must run on UI thread. (Devex - gridView.CopyToClipboard())
gridView.CopyToClipboard()
I do not need the UI to be responsive while c
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.