如何给TEXT控件赋值??
在线等?

解决方案 »

  1.   

    这是不可能的,从各种语言,到各种b/s c/s 到各种编译器,到各种操作系统。也可能是我太浅薄了
      

  2.   

    标题吸引人啊~偶做过Global.asax起一个线程~但LZ这种需求 汗~除非模拟请求
      

  3.   

     Thread thread = new Thread(new ThreadStart(OnStart));
                thread.IsBackground = true;
                thread.Start();private void OnStart()
        {
            while (true)
            {
                List<Response> responseList = HardwareAccessHelper.Instance.HAOList[0].ResponseList;
                if (responseList != null && responseList.Count > 0)
                {
                    txtOutput.Text = System.Text.Encoding.ASCII.GetString(responseList[0].ResponseData);
                    responseList.RemoveAt(0);
                }
                Thread.Sleep(5);
            }
        }看看有没有什么好的解决办法?
    需求就是 输入一个命令发送给串口,这个线程只要循环到有返回数据就在页面显示。。或许有什么其他办法可是实现。