我需要创建一个线程以text box每隔几毫秒根据信号输入刷新文本值。我尝试了以下代码:public void refreshOverview(){ //my cases for the different signal to change the value of the text here //code here case 1: test.text=something case 2: test.text=something2}test.Invoke(() => refreshOverview());我收到了这个错误:无法将 lambda 表达式转换为委托谁能给我看一个简单的代码示例,说明如何使用控制线程每隔几毫秒根据一种方法更改文本的值?
- 2 回答
- 0 关注
- 174 浏览
添加回答
举报
0/150
提交
取消
