2019年12月31日

摘要: 1 Label SnLable = new Label 2 { 3 Size = new Size(SnLength, SnLength), 4 BackColor = Color.Red, 5 Location = new Point(10, 10), 6 BorderStyle = Border 阅读全文

posted @ 2019-12-31 21:11 冰糖Luck1996 阅读(704) 评论(0) 推荐(0) 编辑

2019年12月30日

摘要: 窗体使用事件Form1_KeyDown时,按下键盘上的上下左右按键没反应。 因为Tab、Return、Esc 以及向上键、向下键、向左键和向右键这些是预处理键,直接使用时不行的。 1 private void Form1_KeyDown(object sender, KeyEventArgs e) 阅读全文

posted @ 2019-12-30 21:52 冰糖Luck1996 阅读(641) 评论(0) 推荐(0) 编辑

2019年12月28日

摘要: .Parse方法就是将String转换成int,char,double....等,也就是*.Parse(string) 括号中的一定要是string类型。 用在枚举中可以写为: VarType varType = (VarType)Enum.Parse(typeof(VarType), comboB 阅读全文

posted @ 2019-12-28 20:57 冰糖Luck1996 阅读(4987) 评论(0) 推荐(0) 编辑

2019年12月26日

摘要: 解决方法:点击新建连接 阅读全文

posted @ 2019-12-26 09:24 冰糖Luck1996 阅读(186) 评论(0) 推荐(0) 编辑

2019年12月16日

摘要: 准备:组态王6.55版本 Microsoft SQL Server Management Studio 14.0.17285.0(2017版数据库) 一,登入实例,创建Sa账号(sa账号组态王连接时需要用到) 1,服务器名称:本次测试使用的是安装Wincc创建的实例名称 2,身份验证:先使用Wind 阅读全文

posted @ 2019-12-16 16:28 冰糖Luck1996 阅读(3964) 评论(0) 推荐(0) 编辑

2019年12月11日

摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System. 阅读全文

posted @ 2019-12-11 14:10 冰糖Luck1996 阅读(100) 评论(0) 推荐(0) 编辑

摘要: 异步线程: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //添加引用 using System.Threadin 阅读全文

posted @ 2019-12-11 14:02 冰糖Luck1996 阅读(111) 评论(0) 推荐(0) 编辑

2019年12月10日

摘要: 新建一个WinForm应用 属性中将输出类型更改为 控制台应用程序 阅读全文

posted @ 2019-12-10 11:01 冰糖Luck1996 阅读(650) 评论(0) 推荐(0) 编辑

摘要: 实现效果: 1,创建一个Winform项目 2,创建一个类库 3,类库中添加一个组件类 4,组件类中拖放一个ErrorProvider组件 MyTextBox代码 using System; using System.Collections.Generic; using System.Compone 阅读全文

posted @ 2019-12-10 09:29 冰糖Luck1996 阅读(148) 评论(0) 推荐(0) 编辑

2019年12月9日

摘要: 实现效果: 1,创建一个WinFrom程序 2,添加一个类库 3,类库中添加一个组件类 4,从工具箱中向组件类中拖拽一个ErrorProvider组件 代码部分: MyTextBox using System; using System.Collections.Generic; using Syst 阅读全文

posted @ 2019-12-09 21:53 冰糖Luck1996 阅读(194) 评论(0) 推荐(0) 编辑