我有这样一段代码:
private void button1_Click(object sender, EventArgs e) {
// Do something...
}
private void Form1_KeyDown(object sender, KeyEventArgs e) {
if (e.KeyData == Keys.A) {
// Call button1_Click.
}
}
如何设法调用 Click 事件?我应该写什么而不是
// Call button1_Click.
谢谢!