Run code on UI thread without control object present

前端 未结 5 1774
予麋鹿
予麋鹿 2020-12-08 16:57

I currently trying to write a component where some parts of it should run on the UI thread (explanation would be to long). So the easiest way would be to pass a control to i

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-08 17:46

    What about passing a System.ComponentModel.ISynchronizeInvoke? That way you can avoid passing a Control.

提交回复
热议问题