c#串口编程时,忽略跨线程检查报错

1.直接在main_Form_Load的初始化中加

//忽略跨线程检查
//
System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false;

posted @ 2014-12-10 10:45  fx427103  阅读(353)  评论(0编辑  收藏  举报