上一页 1 ··· 7 8 9 10 11 12 13 下一页
摘要: 用于学习记录 原文链接:https://blog.csdn.net/sunxboy/java/article/details/84499791 Modbus通讯时,需要连续读取多个现场设备的数据,虽然也编写了Modbus轮询的程序,但是有时还是无法正常通讯。有时虽然能够保证通讯,但是所有现场设备的轮 阅读全文
posted @ 2020-04-06 11:53 SusieSnail_SUN 阅读(3273) 评论(0) 推荐(0) 编辑
摘要: 用于学习记录 原文载自:https://www.cnblogs.com/zhan520g/p/11388591.html AutoResetEvent 允许线程通过发信号互相通信。通常,此通信涉及线程需要独占访问的资源。 AutoResetEvent 主要方法# AutoResetEvent(boo 阅读全文
posted @ 2020-03-18 12:11 SusieSnail_SUN 阅读(413) 评论(1) 推荐(0) 编辑
摘要: 用于学习记录 原文载自:https://blog.csdn.net/huwei2003/article/details/13275945 处理当前在消息队列中的所有 Windows 消息。 public static void DoEvents(); 备注 当运行 Windows 窗体时,它将创建新 阅读全文
posted @ 2020-03-17 17:26 SusieSnail_SUN 阅读(550) 评论(0) 推荐(0) 编辑
摘要: 用于学习记录 DllImport是System.Runtime.InteropServices命名空间下的一个属性类,其功能是提供从非托管DLL导出的函数的必要调用信息 ASP.NET中要使用DllImport的,必须在先“using System.Runtime.InteropServices;” 阅读全文
posted @ 2020-03-17 11:10 SusieSnail_SUN 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 作用: MarshalAs属性指示如何在托管代码和非托管代码之间封送数据。 使用方法: [MarshalAs(UnmanagedType unmanagedType, 命名参数)] 实际上相当于构造一个MarshalAsAttribute类的对象 常用的UnmanagedType枚举值:(详细内容查 阅读全文
posted @ 2020-03-17 10:07 SusieSnail_SUN 阅读(3475) 评论(0) 推荐(0) 编辑
摘要: 用于学习记录 原文载自:https://www.runoob.com/w3cnote/csharp-enum.html 六、标志枚举/位枚举 C# 标记枚举(Flags):枚举类型是用于声明一组命名得常数得基本类型数据(值类型)。 枚举值是互斥得。而位标记集合是一种由组合出现得元素形成得列表,通常设 阅读全文
posted @ 2020-03-17 09:45 SusieSnail_SUN 阅读(509) 评论(0) 推荐(0) 编辑
摘要: 仅用于学习记录 结构体是由若干成员组成的.布局有两种1.Sequential,顺序布局struct S1{ int a; int b;}那么默认情况下在内存里是先排a,再排b也就是如果能取到a的地址,和b的地址,则相差一个int类型的长度,4字节[StructLayout(LayoutKind.Se 阅读全文
posted @ 2020-03-16 15:30 SusieSnail_SUN 阅读(1100) 评论(0) 推荐(0) 编辑
摘要: 用于学习记录 原文链接:https://blog.csdn.net/qq_25623355/article/details/80117598 修改快捷键:Options->Key Assignments…(配置个人快捷菜单) 1.main window:Esc 2.Hight light:Middl 阅读全文
posted @ 2020-03-04 17:17 SusieSnail_SUN 阅读(1510) 评论(0) 推荐(0) 编辑
摘要: 学习记录 List<string> cmb = new List<string>(); //集合 ComboBox遍历(一) for (int i = 0; i < comboBox2.Items.Count; i++){ cmb.Add(comboBox2.GetItemText(comboBox 阅读全文
posted @ 2020-02-26 14:39 SusieSnail_SUN 阅读(2161) 评论(0) 推荐(0) 编辑
摘要: 用于学习记录 原文载自: https://www.cnblogs.com/lyl6796910/archive/2012/06/01/2530616.html (一)C# TextBox换行 Windows Form的TextBox显示多行文本就将它的Multiline属性设置为true。 C# T 阅读全文
posted @ 2020-02-26 12:46 SusieSnail_SUN 阅读(714) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 下一页