问题已经解决了
//重写button类使其不接收特殊功能键return
public class MyButton :System.Windows.Forms.Button
{
// Override IsInputKey method to identify the Special keys
protected override bool IsInputKey( System.Windows.Forms.Keys keyData )
{
switch ( keyData)
{
// Add the list of special keys that you want to handle
case Keys.Enter:
return true;
default:
return base.IsInputKey(keyData);
}
}
}
}
//重写button类使其不接收特殊功能键return
public class MyButton :System.Windows.Forms.Button
{
// Override IsInputKey method to identify the Special keys
protected override bool IsInputKey( System.Windows.Forms.Keys keyData )
{
switch ( keyData)
{
// Add the list of special keys that you want to handle
case Keys.Enter:
return true;
default:
return base.IsInputKey(keyData);
}
}
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货