那位大虾做过textBox实时显示接收到的串口数据,我用委托的方法能显示数据,但是不能实时更新,望指导呀!textbox

解决方案 »

  1.   

    updateText = new UpdateTextEventHandler(UpdateTextBox);   //test
    public void Receive_DataReceived(object sender,Ports.SerialDataReceivedEventArgs e)
    {
     
      readString = date.ToString();
      this.Invoke(updateText,new string[] {readString});
    }private void UpdateTextBox(string text)
    {
    }
      

  2.   

    处理了数据了呀!
    还有我如何在判断数据超限后让textBox闪烁