摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Diagnostics;using System.Threading;namespace TestOfProcess{ public partial class Form1 : Form { Th... 阅读全文
posted @ 2012-03-24 21:38 璇星 阅读(627) 评论(0) 推荐(0) 编辑
摘要: using System;using System.IO;using System.Collections.Generic;using System.Text;using System.Data;using System.Drawing;using System.Windows.Forms;namespace SerialDebug{ /// <summary> /// 标题:将 DataGridView 导出到 Excel 或 Xml 通用类 /// Edit by WL 20110404 /// 描述:导出时可以指定需要导出的 DataGridV... 阅读全文
posted @ 2012-03-03 22:15 璇星 阅读(2998) 评论(1) 推荐(0) 编辑
摘要: 我用WinForm做了一个串口数据采集的上位机软件,其中用到DataGridViewComboBoxColumn列来进行多路数据采集时串行端口号的选择控件,但是我发现在程序执行时首次单击该列中任何一行,可用串口号都不会更新。执行应用程序,本机此时有四个虚拟串口COM3~COM6,但是单击DataGridViewComboBoxColumn列任意行控件时没有更新可选端口随意单击其他行,即会显示可用端口号重新点击第0行,可用端口号也就出来了,这是什么原因呢?执行应用程序时我下了断点,发现程序结果正常,但是Winform中没有显示 工程文件下载 解决了,把刷新代码放在OnCellEnter... 阅读全文
posted @ 2012-03-01 22:57 璇星 阅读(1978) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2012-02-22 23:09 璇星 阅读(954) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2012-02-18 14:38 璇星 阅读(9184) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2012-02-16 22:28 璇星 阅读(581) 评论(0) 推荐(0) 编辑
摘要: FIR滤波器设计流程 阅读全文
posted @ 2012-02-16 20:51 璇星 阅读(886) 评论(0) 推荐(1) 编辑
摘要: 代码 阅读全文
posted @ 2012-01-07 22:24 璇星 阅读(558) 评论(0) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2012-01-07 22:15 璇星 阅读(1718) 评论(0) 推荐(1) 编辑
摘要: 正常响应CellValueChanged()事件时,当改变checkbox状态时,只有当焦点离开该单元格时才能触发CellValueChanged()事件,如果要改变checkbox值时实时触发CellValueChanged()事件,需要借用CurrentCellDirtyStateChanged()事件来提交未提交控件的更改。 private void dataGridView1_CurrentCellDirtyStateChanged(object sender, EventArgs e) { if (dataGridView1.IsCu... 阅读全文
posted @ 2012-01-02 23:17 璇星 阅读(14344) 评论(1) 推荐(1) 编辑