I use these codes to inform users when they press a button and show them in a message box that you have pressed a button. In the winform I have a button, so these codes won t working until I change button1 tabstop to false. and when I click on the button after that it won t tell users that they re pressing a button.
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.A)
{
MessageBox.Show("You have pressed A");
}
}
这些法典在我把 but子改成假之前就赢得了工作。 帮助我如何做到这一点,让用户知道他们何时在任何时间用一个顿。
任何帮助都将受到赞赏。