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

前端 未结 8 1287
清酒与你
清酒与你 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 15:04

    There are several possible approaches

    • Hide the main form for the period of the operation
    • Somehow clone/serialize the control and pass it to a thread with another UI dispatcher
    • Get the selected cells via gridView.GetSelectedCells() and then put their contents to the clipboard asynchronously

    It would be more helpful if you've uploaded the GridView library somewhere, so that we could look inside.

提交回复
热议问题