private
void
Form1_load(
object
sender, EventArgs e)
{
this .AcceptButton = EnterButton;
this .CancelButton = EscButton;
}
// 配置窗体的两个属性即可
{
this .AcceptButton = EnterButton;
this .CancelButton = EscButton;
}
// 配置窗体的两个属性即可
转载于:https://www.cnblogs.com/afish1984/archive/2009/07/03/1516459.html