摘要: OpenFileDialog dialog = new OpenFileDialog(); dialog.Multiselect = true;//该值确定是否可以选择多个文件 dialog.Title = "请选择文件夹"; dialog.Filter = "所有文件(*.*)|*.*"; if 阅读全文
posted @ 2022-03-02 11:12 学竹 阅读(357) 评论(0) 推荐(0) 编辑
摘要: delegate void ShowMessageDelegate(RichTextBox tb, string msg); /// <summary> /// 委托RichTextBox 添加文本 /// </summary> /// <param name="tb"></param> /// < 阅读全文
posted @ 2022-03-02 11:09 学竹 阅读(100) 评论(0) 推荐(0) 编辑
摘要: public static void QiDoProcess(string path) { Process m_Process = null; m_Process = new Process(); m_Process.StartInfo.FileName = path; m_Process.Star 阅读全文
posted @ 2022-03-02 11:08 学竹 阅读(43) 评论(0) 推荐(0) 编辑
摘要: public static void Proce(string dirName, string processName) { try { string cmdStr = string.Format("Taskkill /IM {0} /F", processName); Process p = ne 阅读全文
posted @ 2022-03-02 11:06 学竹 阅读(224) 评论(0) 推荐(0) 编辑