上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 52 下一页
摘要: 关于监听回调两次的原因,可能是因为重新监听导致的,所以查到微软上面的解析是说 BeginGetContext方法开始异步 (非阻塞) 调用以接收传入的客户端请求。 在调用此方法之前,必须调用 Start 方法,并添加至少一个统一资源标识符 (uri) 前缀,以便通过将 uri 字符串添加到属性返回的 阅读全文
posted @ 2022-02-21 15:40 LuoCore 阅读(3420) 评论(1) 推荐(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 阅读(220) 评论(0) 推荐(0)
摘要: #region 窗体移动 [System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint = "ReleaseCapture")] private static extern void ReleaseCapture(); [Sys 阅读全文
posted @ 2022-02-18 16:02 LuoCore 阅读(428) 评论(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 阅读(1010) 评论(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 阅读(99) 评论(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 阅读(198) 评论(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 阅读(2501) 评论(0) 推荐(0)
摘要: 用:CellPainting 事件去修改颜色不会那么卡 private void dataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e) { if (e.ColumnIndex >= 0 && rc 阅读全文
posted @ 2022-01-13 14:16 LuoCore 阅读(112) 评论(0) 推荐(0)
摘要: 上传进度: var 每次成功增加的进度 = Convert.ToDouble(文件已上传大小) / Convert.ToDouble(文件总大小); var 当前进度 = (每次成功增加的进度 *100.00); 下载进度: var 每次成功增加的进度 = Convert.ToDouble(文件已下 阅读全文
posted @ 2022-01-11 17:28 LuoCore 阅读(76) 评论(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 阅读(1293) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 52 下一页