- 博客(5)
- 收藏
- 关注
转载 如何动态调用其他人封装好的控件
PatternRecogControlLib.PatternRecogControl pp = null; public Pattern() { InitializeComponent(); pp = new PatternRecogControlLib.PatternReco...
2018-09-10 17:47:00
253
转载 创建、删除文件
使用DirectoryInfo类。1、创建文件:DirectoryInfo folder = new DirectoryInfo(Application.StartupPath + "\\WaferMap\\MAP\\MeasureMap\\123");2、删除该文件:DirectoryInfo folder = new DirectoryInfo(Application...
2018-07-11 09:46:00
146
转载 C#窗体封装为dll,并在新的窗体中调用
1、将窗体封装为dll:右击应用程序--->属性--->应用程序(输出类型)--->类库;点击“保存”,右击应用程序--->生成,此时Debug目录下多了一个主程序同名dll;2、将此dll复制到新窗体Debug目录下;3、新窗体应用程序右键点击添加--->引用,找到dll点击确定;新的窗体程序,加一个按钮控件,控件程序填写如下(其中Form...
2018-06-08 15:08:00
1994
转载 C#子线程调用主线程控件
代码如下:private void ShowMsg(string msg) { if (this.InvokeRequired) { this.Invoke(new Action<string>(ShowMsg), msg); } ...
2018-06-08 14:57:00
437
转载 xml文件保存与读取(最基础的方式)
一、从xml文件读取数据到Winform:1、调用 using System.Xml; 2、XmlDocument xmlDoc = new XmlDocument();3、xmlDoc.Load(Application.StartupPath + "\\ParaConfig.xml");4、XmlElement xmlRoot = xmlDoc.DocumentEle...
2018-06-01 11:28:00
377
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人