效果图: 同时滚动和选中两个DGV的行。 关键代码: 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.Reflection; namespace Sync...【阅读全文】
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 ...【阅读全文】
WINFORM工程引用mshtml.dll时,如果选择【嵌入互操作类型True】,下面的switch语句就会报错: 而将它设置为False,就没事!!什么情况? 什么是嵌入互操作类型? 现在可以使用 COM 互操作程序集,而不要求该程序集在运行时必须存在。目的是减轻将 COM 互操作程序集与...【阅读全文】