2018年9月10日
摘要: 首先,将要调用的控件dll放到目录下,项目里调用该dll; 如代码中所示,PatternRecogControlLib是dll的名称,PatternRecogControl是dll中控件的名称; 阅读全文
posted @ 2018-09-10 17:47 卡丘 阅读(153) 评论(0) 推荐(0) 编辑
  2018年7月11日
摘要: 使用DirectoryInfo类。 1、创建文件: DirectoryInfo folder = new DirectoryInfo(Application.StartupPath + "\\WaferMap\\MAP\\MeasureMap\\123"); 2、删除该文件: DirectoryIn 阅读全文
posted @ 2018-07-11 09:46 卡丘 阅读(102) 评论(0) 推荐(0) 编辑
  2018年6月8日
摘要: 1、将窗体封装为dll: 右击应用程序 >属性 >应用程序(输出类型) >类库;点击“保存”,右击应用程序 >生成,此时Debug目录下多了一个主程序同名dll; 2、将此dll复制到新窗体Debug目录下; 3、新窗体应用程序右键点击添加 >引用,找到dll点击确定; 新的窗体程序,加一个按钮控件 阅读全文
posted @ 2018-06-08 15:08 卡丘 阅读(7902) 评论(0) 推荐(1) 编辑
摘要: 代码如下: 阅读全文
posted @ 2018-06-08 14:57 卡丘 阅读(399) 评论(0) 推荐(0) 编辑
  2018年6月1日
摘要: 一、从xml文件读取数据到Winform: 1、调用 using System.Xml; 2、XmlDocument xmlDoc = new XmlDocument(); 3、xmlDoc.Load(Application.StartupPath + "\\ParaConfig.xml"); 4、 阅读全文
posted @ 2018-06-01 11:28 卡丘 阅读(5707) 评论(0) 推荐(0) 编辑