Hi, I have this piece of code:
private void Window_KeyUp(object sender, KeyEventArgs e) { if (playing == false) { return; } if (e.KeyCode == Keys.D1) { pictureBox6.Image = Form.Properties.Resources.black_square_button; player.Stop(); player.Close(); playing = false; } }
I do not work, but Window_KeyDown () works.
What is wrong with my code?
Thanks.
source share