C#跨线程修改按钮的enable属性和文本
修改enable属性
C#跨线程修改按钮的enable属性和文本
代码展示:
// 委托修改enable属性
rotateCenterCaliBtn.Invoke(new Action<bool>(s => rotateCenterCaliBtn.Enabled = s),false);
修改文本
// 委托修改文本
rotateCenterCaliBtn.Invoke(new Action<string>(s => rotateCenterCaliBtn.Text = s), "文本");