摘要: (一)参考文献:C#之Chart控件系列教程——一 (二)下载地址:https://download.csdn.net/download/xiaoguoge11/11838944 (三)视频教程:https://v.qq.com/x/page/l30066swy7w.html 阅读全文
posted @ 2019-10-07 21:03 陆小果哥哥 阅读(5748) 评论(1) 推荐(2) 编辑
摘要: (一)参考文献:[C#]将数据写入已存在的excel文件 C# 导入excel数据,解决关闭excel后不能释放资源的问题 (二)视频教程:https://v.qq.com/x/page/p30063aerl3.html (三)下载地址:https://download.csdn.net/downl 阅读全文
posted @ 2019-10-07 17:27 陆小果哥哥 阅读(789) 评论(0) 推荐(0) 编辑
摘要: (一)具体教程查看:011——C#创建ECXEL文件(附教程) (二)代码:foldPath 就是获取到的文件路径 private void button1_Click(object sender, EventArgs e) { FolderBrowserDialog dialog = new Fo 阅读全文
posted @ 2019-10-07 16:44 陆小果哥哥 阅读(2130) 评论(0) 推荐(0) 编辑
摘要: (一)参考文献:[C#]创建表格(.xlsx)的典型方法 (二)视频教程:https://v.qq.com/x/page/t30068qfex5.html (三)下载地址:https://download.csdn.net/download/xiaoguoge11/11838954 private 阅读全文
posted @ 2019-10-07 16:37 陆小果哥哥 阅读(486) 评论(0) 推荐(0) 编辑
摘要: (一)窗体二定义,static静态 public static byte[] waveform_data = { }; // 数据,在串口接收中变化 public static bool waveform_data_flag = false; //曲线获取数据标志位,在串口接收中变化 (二)窗体一引 阅读全文
posted @ 2019-10-07 16:24 陆小果哥哥 阅读(441) 评论(0) 推荐(0) 编辑
摘要: (一)转载——c#获取当前日期时间 我们可以通过使用DataTime这个类来获取当前的时间。通过调用类中的各种方法我们可以获取不同的时间:如:日期(2008-09-04)、时间(12:12:12)、日期+时间(2008-09-04 12:11:10)等。 C#获取时间 //获取日期+时间 DateT 阅读全文
posted @ 2019-10-07 16:18 陆小果哥哥 阅读(208) 评论(0) 推荐(0) 编辑
摘要: (一)转载——C#将字符串转换为整型的三种方法的总结 在C#中,要将一个字符串或浮点数转换为整数,基本上有三种方法: (1)使用强制类型转换:(int)浮点数 (2)使用Convert.ToInt32(string) (3)使用int.Parse(string)或int.TryParse(strin 阅读全文
posted @ 2019-10-07 16:08 陆小果哥哥 阅读(11349) 评论(0) 推荐(0) 编辑
摘要: (一)参考文献:C# 添加FormClosing事件 (二)在 项目名.Designer.cs中的InitializeComponent()添加: this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.fr 阅读全文
posted @ 2019-10-07 16:04 陆小果哥哥 阅读(4809) 评论(0) 推荐(1) 编辑
摘要: (一)项目右键属性 (二)应用程序-->图标 图标转换:http://www.faviconico.org/ (三)窗体右键属性更改窗体里面的图标 (四)修改名字 阅读全文
posted @ 2019-10-07 15:53 陆小果哥哥 阅读(373) 评论(0) 推荐(0) 编辑