c#中怎么使button的快捷键为enter
privatevoidbutton1_KeyPress(objectsender,KeyPressEventArgse){if(e.KeyChar==Keys.Enter...
private void button1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == Keys.Enter)
{
button1_Click();
}
}
这样写会提示错误呃... 展开
{
if (e.KeyChar == Keys.Enter)
{
button1_Click();
}
}
这样写会提示错误呃... 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询