会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
田宏伟_thw
博客园
首页
新随笔
联系
订阅
管理
2026年4月30日
Winform中原生Chart绘制曲线卡顿替代方案(ScottPlot Signal)
摘要: winform中遇到需要长时间监控和记录数据曲线时候,我们经常用到chart这个原生控件,但是对于大量的数据显示会造成界面卡顿和无响应。使用ScottPlot Signal则会解决这一问题 1.安装NuGet包 2.使用控件FormsPlot 3.示例界面 4.示例代码 namespace Scot
阅读全文
posted @ 2026-04-30 15:28 田宏伟_thw
阅读(69)
评论(0)
推荐(0)
2026年2月4日
ORM框架-Dapper常用示例
摘要: 1.安装Dapper的NuGet包 2.示例代码如下 1 string connString = "YourConnectionStringHere"; 2 IDbConnection db = new SqlConnection(connString); 3 //查询数据 4 string sql
阅读全文
posted @ 2026-02-04 16:10 田宏伟_thw
阅读(12)
评论(0)
推荐(0)
2025年7月8日
C# Winform解决窗体大量控件加载闪烁卡顿的问题
摘要: 1.重写 CreateParams 属性:通过重写CreateParams属性,为窗体或控件设置扩展窗口样式WS_EX_COMPOSITED,可启用系统级的双缓冲,能有效减少窗体和控件的闪烁,尤其是在控件较多的复杂界面中。 protected override CreateParams Create
阅读全文
posted @ 2025-07-08 20:18 田宏伟_thw
阅读(671)
评论(0)
推荐(1)
2024年4月7日
C#设置原生Chart的Y轴显示为科学计数法,对数显示
摘要: 1 chart1.ChartAreas[0].AxisY.IsLogarithmic=true; 2 chart1.ChartAreas[0].AxisY.LogarithmBase=10; 3 chart1.ChartAreas[0].AxisY.Minimum=1E-16; 4 chart1.C
阅读全文
posted @ 2024-04-07 09:47 田宏伟_thw
阅读(381)
评论(0)
推荐(0)
2023年1月31日
C#中将图片转换成Byte数组,和将数组转换出来
摘要: 一,将图片转换成Byte数组 byte[] photo; string path = Application.StartupPath + "\\ICMAXR060001_Station1_CH1_HT.jpg";//图片原路径 Image img = new Bitmap(path); Memory
阅读全文
posted @ 2023-01-31 14:44 田宏伟_thw
阅读(1627)
评论(0)
推荐(0)
2022年5月12日
C#窗体缩放
摘要: 1.缩放功能类 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; using System.Windows.Forms; us
阅读全文
posted @ 2022-05-12 17:19 田宏伟_thw
阅读(533)
评论(0)
推荐(0)
C#中移动无边框窗体
摘要: 为了美观,自己用Panel做了一个标题栏,如下图白色的上边栏,直接贴代码 /// <summary> /// 鼠标左键按下 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private vo
阅读全文
posted @ 2022-05-12 17:00 田宏伟_thw
阅读(163)
评论(0)
推荐(0)
2022年3月2日
C++判断数组中包含某个元素
摘要: 1 #include <algorithm> 2 using namespace std; 3 4 int a[6]={1,2,3,4,5,6} 5 int b=3; 6 int c=7; 7 8 if(find(a,a+sizeof(a)/sizeof(a[0]),b)!=a+sizeof(a)/
阅读全文
posted @ 2022-03-02 11:48 田宏伟_thw
阅读(1320)
评论(0)
推荐(0)
2021年11月23日
【2020版】Basic4Android安装配置指南
摘要: 【2020版】Basic4Android安装配置指南_Kevin_WWWW的博客-CSDN博客_basic4android
阅读全文
posted @ 2021-11-23 23:50 田宏伟_thw
阅读(65)
评论(0)
推荐(0)
2021年9月10日
C#中JSON的序列化和反序列化取值示例
摘要: C#中JSON的序列化和反序列化取值示例 1.首先需要引用Newtonsoft.Json.dll文件(代码引用using Newtonsoft.Json和using Newtonsoft.Json.Linq;) 2.定义两个类PerSon和_Name,代码如下:(如何创建多个根节点的JSON字符串可
阅读全文
posted @ 2021-09-10 14:14 田宏伟_thw
阅读(855)
评论(0)
推荐(0)
下一页
公告