全部博文(1293)
发布时间:2016-05-30 16:27:41
C#禁用numericUpDown控件鼠标中键滚轮消息响应numericUpDown_roadgain.MouseWheel += new MouseEventHandler(Num_DiscountAmount_MouseWheel);private void Num_DiscountAmount_MouseWheel(object sender, MouseEventArgs e){ HandledMouseEventArgs h = e as HandledMouseEventArgs; if .........【阅读全文】
发布时间:2016-05-30 10:43:29
Libevent官网:http://libevent.org/ windows 7下编译: 编译环境: windows 7 + VS2010 (1)解压libevent到F:\libevent\libevent-2.0.21-stable (2)打开Microsoft visual studio 2010命令行工具 (3)修改以下三个文件,添加宏定义: 在以下3个文件开头添加“#define _WIN32_WINNT 0x0500” libevent-2.0.21-sta.........【阅读全文】
发布时间:2016-05-25 11:12:49
C#使用printDocument1.Print打印时不显示正在打印对话框有两种方法第一种,使用PrintController PrintController printController = new StandardPrintController(); printDocument1.PrintController = printController; &n.........【阅读全文】
发布时间:2016-05-24 16:53:24
private DateTime mLastClickTime; this.mLastClickTime = Convert.ToDateTime("2013-01-01 00:00:00.0000"); private void setPnlMouseDown_Handler(object sender, MouseEventArgs e){ if (e.Button == System.Windows..........【阅读全文】
发布时间:2016-05-20 15:56:42
1. 执行如下按钮事件 private void btnFormMax_Click(object sender, EventArgs e) { if (this.WindowState == FormWindowState.Maximized) { this.WindowState = FormWindowState.Normal;.........【阅读全文】