摘要: (1)无边框窗口的拖动事件 新建一个MenuStrip,然后注册其MouseMove与MouseDown事件 private Point formPoint = new Point(); public MainForm() { InitializeComponent(); } private voi 阅读全文
posted @ 2020-07-29 23:32 xiaoxinZard 阅读(226) 评论(0) 推荐(0)
摘要: (1)使用.Contains方法 using System; using System.Collections.Generic; namespace csharptest_1 { class NewClass { private static List<string> list; private s 阅读全文
posted @ 2020-07-23 21:38 xiaoxinZard 阅读(5200) 评论(0) 推荐(0)
摘要: 将此两个方法保存在一个新建类中,通过构造函数传递线程,每次调用方法时,都创建一个新的类的实例,实际操作的是该线程的形参 代码如下: using System; using System.Collections.Generic; using System.Net; using System.Net.S 阅读全文
posted @ 2020-07-18 14:11 xiaoxinZard 阅读(180) 评论(0) 推荐(0)
摘要: public delegate void ParameterizedThreadStart(object obj); class Work { public static Thread newThread = null;//Udp接收数据线程 public static void Main() { 阅读全文
posted @ 2020-07-10 19:13 xiaoxinZard 阅读(642) 评论(0) 推荐(0)
摘要: List<string> a = new List<string>();//此类string型List也可以排序的,使用sort方法 a.Sort(); sort方法的本质,即为比较字符串首位字符的Unicode值,若相等则比较下一位字符。 使用时要遵循此方法的本质 阅读全文
posted @ 2020-07-07 16:26 xiaoxinZard 阅读(294) 评论(0) 推荐(0)
摘要: 因为Event指向的自定义方法Hide与.net自有方法重名,添加了New关键字 删除New关键字,更改方法名后即可运行 阅读全文
posted @ 2020-07-02 16:42 xiaoxinZard 阅读(120) 评论(0) 推荐(0)
摘要: 有传参进去的function,慎重使用clear/clear all 会清除掉传进去的参数 阅读全文
posted @ 2020-05-19 18:25 xiaoxinZard 阅读(173) 评论(0) 推荐(0)
摘要: Vue: (1)Vue生命周期:创建实例—挂载页面—销毁页面,与钩子函数是相一致的 (2)销毁之后会触发什么: (3)简述Promise (4)Vue某两个不同组件传参 (5)Vue传值(父子等) (6)为什么Data是函数不是对象 (7)v-if、v-show JS: (1)Var、Let、Con 阅读全文
posted @ 2020-04-10 17:02 xiaoxinZard 阅读(116) 评论(0) 推荐(0)
摘要: string currentButtonName = "buttonLinked";//第1种Button temButton = (Button)this.GetType().GetField(currentButtonName, System.Reflection.BindingFlags.No 阅读全文
posted @ 2020-02-13 21:05 xiaoxinZard 阅读(402) 评论(0) 推荐(0)
摘要: (1)使用System.BitConverter static void Main(string[] args){ UInt64 sendData = 0xA000A908020001FE; byte[] bs = System.BitConverter.GetBytes(sendData); // 阅读全文
posted @ 2020-01-29 14:07 xiaoxinZard 阅读(765) 评论(0) 推荐(0)