摘要: https://www.cnblogs.com/arxive/p/5884994.html 阅读全文
posted @ 2021-05-12 09:45 冰糖小袁子 阅读(53) 评论(0) 推荐(0)
摘要: 需要的变量定义 private double RowDown;//鼠标按下时的行坐标 private double ColDown;//鼠标按下时的列坐标 HTuple Hmposition_Row, Hmposition_Col; HObject himg; HWindow hwin; bool 阅读全文
posted @ 2021-05-06 13:49 冰糖小袁子 阅读(2442) 评论(0) 推荐(0)
摘要: namespace ConsoleApplication1 { class Program { static void Main(string[] args) { double[] a = { 0, 1, 2, 3, 4 };//原数组,即需要插入数据的数组 foreach (var item in 阅读全文
posted @ 2020-12-14 11:04 冰糖小袁子 阅读(180) 评论(0) 推荐(0)
摘要: 首先创建一个IniFiles类 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; using Syst 阅读全文
posted @ 2020-12-07 10:35 冰糖小袁子 阅读(587) 评论(0) 推荐(0)
摘要: 拿到string类型的数据: using System; using System.Collections; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { Ar 阅读全文
posted @ 2020-12-04 08:46 冰糖小袁子 阅读(673) 评论(0) 推荐(0)
摘要: 使用指定浏览器打开网址: System.Diagnostics.Process.Start("360chrome.exe", "http://converter.telerik.com/"); 使用默认浏览器打开网址: System.Diagnostics.Process.Start("http:/ 阅读全文
posted @ 2020-11-16 11:04 冰糖小袁子 阅读(560) 评论(0) 推荐(0)
摘要: 首先添加引用 using System.Diagnostics;//stopwatch的引用 //声明变量 Stopwatch a=new Stopwatch();//PS:这里一定要new(实例化)一下,不然会抛出“未将对象引用对象的实例”的异常 Stopwatch a=null;和Stopwat 阅读全文
posted @ 2020-10-31 19:30 冰糖小袁子 阅读(600) 评论(0) 推荐(0)
摘要: 在C#首次添加Halcon显示控件需要对环境进行配置,步骤如下: 1:新建一个winform程序(窗体应用程序),在工具箱内右键点击,找到选择项 2.在.Net Framework组件中找到HWindowControl这个打上勾就可以添加完成了。 (ps:如果没有这个则需要添加Halcon的类型库, 阅读全文
posted @ 2020-10-13 19:30 冰糖小袁子 阅读(2357) 评论(0) 推荐(0)
摘要: 所需软件:VS2012,Halcon10.0(现在我自己用的是VS2012和Halcon10.0,可以根据自己实际使用软件情况来进行编写) 代码写在窗体加载事件里面,所以只需要一个 HWindowControl1 控件 源码如下: 阅读全文
posted @ 2020-10-13 18:08 冰糖小袁子 阅读(2496) 评论(0) 推荐(0)