12 2024 档案

摘要:![](https://img2024.cnblogs.com/blog/3550122/202412/3550122-20241222142657274-1155498874.png) ![](https://img2024.cnblogs.com/blog/3550122/202412/3550122-20241222142706330-1311098044.png) 阅读全文
posted @ 2024-12-22 14:27 小卡拉咪 阅读(4) 评论(0) 推荐(0) 编辑
摘要:1.问题描述 当DataGridView频繁更新数据源时,可能会导致界面闪烁、性能下降等问题。这是因为每次更新数据源时,DataGridView都需要重新绘制和绑定数据,这是一个相对耗时的过程。 2.解决方案 使用BindingList代替普通List作为数据源(适用于简单数据更新) Binding 阅读全文
posted @ 2024-12-09 16:19 小卡拉咪 阅读(38) 评论(0) 推荐(0) 编辑
摘要:1:引用命名空间 using System.Runtime.InteropServices; 2:想要拖动窗体的控件绑定MouseDown事件 点击查看代码 //窗体移动 [DllImport("user32.dll")] public static extern bool ReleaseCaptu 阅读全文
posted @ 2024-12-07 14:21 小卡拉咪 阅读(16) 评论(0) 推荐(0) 编辑
摘要:1.用Modbus工具模拟PLC 2.创建一个实体类 点击查看代码 internal class Data : INotifyPropertyChanged { ushort[] ushorts = new ushort[10]; public ushort D0 { get => ushorts[ 阅读全文
posted @ 2024-12-02 16:05 小卡拉咪 阅读(39) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示