上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 52 下一页
摘要: #region 窗体移动 [System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint = "ReleaseCapture")] private static extern void ReleaseCapture(); [Sys 阅读全文
posted @ 2022-02-18 16:02 LuoCore 阅读(408) 评论(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 阅读(210) 评论(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 阅读(980) 评论(2) 推荐(0)
摘要: @echo off%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exitcd /d "%~dp0""cmd /c 阅读全文
posted @ 2022-02-15 15:33 LuoCore 阅读(77) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/ZCoding/p/4274026.html System.Diagnostics.Stopwatch stopwatch = new Stopwatch();stopwatch.Start(); // 开始监视代码运行时间// 需要测试的代码 ... 阅读全文
posted @ 2022-01-18 18:06 LuoCore 阅读(180) 评论(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 阅读(2398) 评论(0) 推荐(0)
摘要: 用:CellPainting 事件去修改颜色不会那么卡 private void dataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e) { if (e.ColumnIndex >= 0 && rc 阅读全文
posted @ 2022-01-13 14:16 LuoCore 阅读(102) 评论(0) 推荐(0)
摘要: 上传进度: var 每次成功增加的进度 = Convert.ToDouble(文件已上传大小) / Convert.ToDouble(文件总大小); var 当前进度 = (每次成功增加的进度 *100.00); 下载进度: var 每次成功增加的进度 = Convert.ToDouble(文件已下 阅读全文
posted @ 2022-01-11 17:28 LuoCore 阅读(69) 评论(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 阅读(1258) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/alisa525/article/details/12518927 1,Array.Copy在CLR处理机制中最灵活,最强大,可装箱,拆箱复制,可加宽CLR基元类型,可内部判断实现了IFarmattable接口的兼容转换,当然这种强大方式必然会带来一定的性 阅读全文
posted @ 2022-01-11 14:16 LuoCore 阅读(466) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 52 下一页