I have this code, which does not want to work! The point is to make a key viewer which shows the pressed cursor keys!
However, none of the keyUpPress
method works.
bool debug = true;
void keyUpPress(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Up)
{
if (debug == true)
{
MessageBox.Show("CURSOR UP", "Cursor!");
}
pictureBox1.Image = Properties.Resources.key_up_pressed;
pictureBox1.Refresh();
}