文本框检测回车按键或条码扫描结束回车符
摘要:private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { try { if (e.KeyChar == (char)System.Windows.Forms.Keys.Enter) { //执行操作 if (this.t
阅读全文
posted @
2021-04-17 21:11
谜一样的逍遥人
阅读(314)
推荐(0)
WinCE/Mobile上下滑动浏览DataGrid数据 【转】
摘要://利用DataGrid的MouseDown和MouseMove事件,模拟滑动浏览的效果 int x = 0, y = 0;private void dataGrid_MouseDown(object sender, MouseEventArgs e){ x = e.X; y = e.Y;}private void dataGrid_MouseMove(object sender, MouseEventArgs e){ try { int yy = 0; //当前鼠标y坐标值与滑动开始y值的差 给予datagrid 上下滑动距离值 ...
阅读全文
posted @
2013-01-31 22:56
谜一样的逍遥人
阅读(386)
推荐(0)