怎么写C#让按下键盘按键后对应的Button组件响应 on Click

2025-02-24 17:48:43
推荐回答(1个)
回答1:

KeyDown事件:

if(e.KeyCode==Keys.Enter)
{
    button.PerformClick();
}