随笔分类 -  C#

上一页 1 2 3 4 5 6 7 ··· 12 下一页
摘要:if (System.Diagnostics.Process.GetCurrentProcess().ProcessName == "devenv")//判断是否为设计时 { return;} if (Site == null || !this.Site.DesignMode)//运行时。。。 { 阅读全文
posted @ 2022-05-13 11:56 LuoCore 阅读(148) 评论(0) 推荐(0) 编辑
摘要:private void DGV_CellPainting(object sender, DataGridViewCellPaintingEventArgs e) { if (e.ColumnIndex >= 0 && DGV.Columns[e.ColumnIndex].Name == "字段名称 阅读全文
posted @ 2022-04-19 10:50 LuoCore 阅读(223) 评论(0) 推荐(0) 编辑
摘要:https://malic.xyz/archives/1607 following-sibling选取当前节点之后的所有兄弟节点 要定位当前td同级后的一个td //td[.='text']/following-sibling::td https://www.cnblogs.com/VseYoung 阅读全文
posted @ 2022-04-14 14:23 LuoCore 阅读(42) 评论(0) 推荐(0) 编辑
摘要:using CLRConsole = System.Console; namespace ExtensionMethodsDemo { public static class Console { public static void WriteLine(string value) { CLRCons 阅读全文
posted @ 2022-04-10 20:55 LuoCore 阅读(189) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/kucoffee12/article/details/81874138 string str = "fxq.5.6.doc"; //文件名称中设计多个特定符号; str = str.Substring(0, str.LastIndexOf(".")); C 阅读全文
posted @ 2022-04-01 18:11 LuoCore 阅读(243) 评论(0) 推荐(0) 编辑
摘要:DataGridView.GetType().GetProperty("DoubleBuffered", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).SetValue(Data 阅读全文
posted @ 2022-03-22 10:01 LuoCore 阅读(516) 评论(0) 推荐(0) 编辑
摘要:推荐 官网 http://www.hzhcontrols.com/ NetWinform自定义控件 English README.md(github) English README.md(gitee) 根据该控件库重写 https://www.cnblogs.com/bfyx/p/11641874. 阅读全文
posted @ 2022-03-13 10:41 LuoCore 阅读(411) 评论(0) 推荐(0) 编辑
摘要:extern alias VideoFFMPEGX64;using VideoFFMPEGX64::Accord.Video.FFMPEG; 阅读全文
posted @ 2022-03-07 19:04 LuoCore 阅读(247) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/plato_2/article/details/17434715?spm=1001.2101.3001.6650.2&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIS 阅读全文
posted @ 2022-03-01 14:50 LuoCore 阅读(1471) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/LukeSteven/p/14643499.html 阅读全文
posted @ 2022-02-28 18:48 LuoCore 阅读(36) 评论(0) 推荐(0) 编辑
摘要:灵感来源:https://blog.csdn.net/anonymous_qsh/article/details/78596695 public static Hashtable ObjectToMap(object obj, bool isIgnoreNull = false) { Hashtab 阅读全文
posted @ 2022-02-24 17:08 LuoCore 阅读(312) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// DataRow 转 Model /// </summary> /// <typeparam name="T"></typeparam> /// <param name="row"></param> /// <returns></returns> public st 阅读全文
posted @ 2022-02-22 20:38 LuoCore 阅读(519) 评论(0) 推荐(0) 编辑
摘要:关于监听回调两次的原因,可能是因为重新监听导致的,所以查到微软上面的解析是说 BeginGetContext方法开始异步 (非阻塞) 调用以接收传入的客户端请求。 在调用此方法之前,必须调用 Start 方法,并添加至少一个统一资源标识符 (uri) 前缀,以便通过将 uri 字符串添加到属性返回的 阅读全文
posted @ 2022-02-21 15:40 LuoCore 阅读(3114) 评论(1) 推荐(0) 编辑
摘要:#region 窗体移动 [System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint = "ReleaseCapture")] private static extern void ReleaseCapture(); [Sys 阅读全文
posted @ 2022-02-18 16:02 LuoCore 阅读(393) 评论(0) 推荐(0) 编辑
摘要:#region 设置窗体圆角 /// <summary> /// 设置窗体圆角 /// </summary> /// <param name="f"></param> public static void FormRounded(this Form f) { f.Resize += (object 阅读全文
posted @ 2022-02-18 16:02 LuoCore 阅读(173) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/mqxs/p/9466218.html public class FormShadow : Form { public FormShadow() { Initialize(); } /// <summary> /// 界面加载 /// </summar 阅读全文
posted @ 2022-02-18 16:01 LuoCore 阅读(914) 评论(2) 推荐(0) 编辑
摘要:https://www.cnblogs.com/ZCoding/p/4274026.html System.Diagnostics.Stopwatch stopwatch = new Stopwatch();stopwatch.Start(); // 开始监视代码运行时间// 需要测试的代码 ... 阅读全文
posted @ 2022-01-18 18:06 LuoCore 阅读(172) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_37664403/article/details/118747195 1.Debug模式,Release模式#if DEBUGConsole.WriteLine(“Debug模式”);#elseConsole.WriteLine(“Release模式 阅读全文
posted @ 2022-01-14 17:19 LuoCore 阅读(2262) 评论(0) 推荐(0) 编辑
摘要:用:CellPainting 事件去修改颜色不会那么卡 private void dataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e) { if (e.ColumnIndex >= 0 && rc 阅读全文
posted @ 2022-01-13 14:16 LuoCore 阅读(93) 评论(0) 推荐(0) 编辑
摘要:[DllImport("msvcrt.dll", CallingConvention = CallingConvention.Cdecl)] static extern int ByteEquals(byte[] b1, byte[] b2, long count); /// <summary> / 阅读全文
posted @ 2022-01-11 15:12 LuoCore 阅读(1246) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 12 下一页
点击右上角即可分享
微信分享提示