日期:2014-05-17 浏览次数:21084 次
protected override bool ProcessDialogKey(Keys keyData)
{
switch (keyData)
{
case Keys.D0: n0.PerformClick(); break;
case Keys.D1: n1.PerformClick(); break;
case Keys.D2: n2.PerformClick(); break;
case Keys.D3: n3.PerformClick(); break;
case Keys.D4: n4.PerformClick(); break;
case Keys.D5: n5.PerformClick(); break;
case Keys.D6: n6.PerformClick(); break;
case Keys.D7: n7.PerformClick(); break;
case Keys.D8: n8.PerformClick(); break;
case Keys.D9: n9.PerformClick(); break;
case Keys.Enter: equal.PerformClick(); break;
case Keys.OemPeriod: npoint.PerformClick(); break;
case Keys.Back: deleteone.PerformClick(); break;
case Keys.Shift
------解决方案--------------------
Keys.Oemplus: add.PerformClick(); break;
case Keys.OemMinus: minus.PerformClick(); break;
case Keys.Shift
------解决方案--------------------
Keys.D8: multiply.PerformClick(); break;
case Keys.OemQuestion: divide.PerformClick(); break;
case Keys.Oemplus: equal.PerformClick(); break;
}
return false;
}