Help me with that CrossThread?

前端 未结 3 1136
小鲜肉
小鲜肉 2020-12-22 06:49

This code is executed by many way. When it\'s executed by the form button it works (the button start a thread and in the loop it call this method = it works). BUT it doesn\'

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-22 07:21

    Depending on your coding style either use return right after the Invoke or put the actual action as an else block.

提交回复
热议问题