会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
博客园
首页
LuoCore
LuoCore
www.LuoCore.com
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
10
11
12
13
14
15
16
17
18
···
52
下一页
2022年2月21日
C# HttpListener 的使用方法
摘要: 关于监听回调两次的原因,可能是因为重新监听导致的,所以查到微软上面的解析是说 BeginGetContext方法开始异步 (非阻塞) 调用以接收传入的客户端请求。 在调用此方法之前,必须调用 Start 方法,并添加至少一个统一资源标识符 (uri) 前缀,以便通过将 uri 字符串添加到属性返回的
阅读全文
posted @ 2022-02-21 15:40 LuoCore
阅读(3420)
评论(1)
推荐(0)
2022年2月18日
C# WInFomr 窗体圆角
摘要: #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)
C# WinForm 窗体/控件移动
摘要: #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)
C# WinForm 窗体阴影
摘要: 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)
2022年2月15日
Window 下bat管理员身份运行文件
摘要: @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)
2022年1月18日
C#如何测试代码运行时间
摘要: 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)
2022年1月14日
c# 判断程序是否Debug模式还是Release模式 调试模式,开发模式,发布模式
摘要: 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)
2022年1月13日
C# WinForm 查询时设置DataGridView 的颜色
摘要: 用:CellPainting 事件去修改颜色不会那么卡 private void dataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e) { if (e.ColumnIndex >= 0 && rc
阅读全文
posted @ 2022-01-13 14:16 LuoCore
阅读(112)
评论(0)
推荐(0)
2022年1月11日
donNet 文件上传下载进度计算(一段代码体现数学在编码中的重要位置)
摘要: 上传进度: var 每次成功增加的进度 = Convert.ToDouble(文件已上传大小) / Convert.ToDouble(文件总大小); var 当前进度 = (每次成功增加的进度 *100.00); 下载进度: var 每次成功增加的进度 = Convert.ToDouble(文件已下
阅读全文
posted @ 2022-01-11 17:28 LuoCore
阅读(76)
评论(0)
推荐(0)
C# 对比两个byte[]是否一样
摘要: [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
下一页
公告