代码如下:

        private void ShowInfo(string msg)
        {
            this.BeginInvoke((Action)(() =>
            {
                textBox1.AppendText(string.Format("{0} {1}", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), msg));
                textBox1.AppendText(Environment.NewLine);               
                textBox1.ScrollToCaret();
            }));
        }

 

代码下载

 

相关文章:

  • 2021-11-21
  • 2021-08-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2021-08-10
  • 2021-11-27
猜你喜欢
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
  • 2022-12-23
  • 2021-07-28
相关资源
相似解决方案