摘要: 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 学竹 阅读(230) 评论(0) 推荐(0) 编辑
摘要: //获取所有img标签 <img\b[^<>]*?\bsrc[\s\t\r\n]*=[\s\t\r\n]*[""']?[\s\t\r\n]*(?<imgUrl>[^\s\t\r\n""'<>]*)[^<>]*?/?[\s\t\r\n]*> //清除 除img和&nbsp;标签外的所有标签,并留下@保 阅读全文
posted @ 2022-02-24 16:00 学竹 阅读(638) 评论(0) 推荐(0) 编辑
摘要: //日期格式强制转化 string str1 = deStartDate.EditValue.ToString(); DateTime date; DateTime.TryParse(str1, out date); str1 = date.ToString("yyyy/MM/dd"); strin 阅读全文
posted @ 2022-02-24 15:51 学竹 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 最终效果 设置 在TabPage中 ok完工 阅读全文
posted @ 2021-07-19 16:20 学竹 阅读(569) 评论(0) 推荐(0) 编辑
摘要: 在存有新建文件夹并可以拖拽功能的情况下,发现连环套入出现问题 “指定的路径或文件名太长,或者两者都太长。完全限定文件名必须少于 260” 方法一: 但是这个需要.NET 4.6.2 及以上 因为需求是要基于4.0,所以Pass。 方法二: 通过使用widows API进行解决 internal st 阅读全文
posted @ 2021-06-30 17:15 学竹 阅读(2059) 评论(0) 推荐(0) 编辑
摘要: #region listview 双击item进入编辑 //获取鼠标点击的项 API [DllImport("user32")] public static extern int GetScrollPos(int hwnd, int nBar); private TextBox txtInput; 阅读全文
posted @ 2021-06-16 15:27 学竹 阅读(661) 评论(0) 推荐(0) 编辑
摘要: public static DataSet GetDataSetByXmlpath(string strXmlPath) { try { DataSet ds = new DataSet(); //读取XML到DataSet Encoding encoding=GetEncoding(strXmlP 阅读全文
posted @ 2021-03-08 11:19 学竹 阅读(91) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System. 阅读全文
posted @ 2021-01-07 17:08 学竹 阅读(268) 评论(0) 推荐(0) 编辑
摘要: if (File.Exists(@"E:\exists.txt")) { MessageBox.Show("文件存在"); } else { MessageBox.Show("无此文件"); } 阅读全文
posted @ 2021-01-07 17:06 学竹 阅读(2158) 评论(0) 推荐(0) 编辑
摘要: private void Form1_Load(object sender, EventArgs e) { ChromiumWebBrowser b = new ChromiumWebBrowser("http://localhost:57531/views/Map/scene.html"); th 阅读全文
posted @ 2020-11-24 15:04 学竹 阅读(3544) 评论(0) 推荐(0) 编辑