ICode9

精准搜索请尝试: 精确搜索
  • winform开启线程实时输出日志到控件2022-08-18 09:33:38

    1、声明委托   public delegate void ShowMessage2Form(string message); 2、声明事件 static public event ShowMessage2Form ShowMessage; 3、事件绑定 LogHelper.ShowMessage += ShowLog; 4、方法实现:实时显示到主窗口控件上 private void ShowLog(string message)

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有