Hello everybody,

I have been trying to figure out how to capture input from the arrow keys, but I'm not having any luck. I first checked my copy of C# - How To Program for the section on keyboard event handling, but after reading the relevant section I'm still having problems as I'm not really sure what was being done and that's also true of some of the examples I googled for. Basically I want 4 different methods to be called - one for each arrow key when the user presses it.

Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace TestApplication
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        //How Do I Call These 4 Methods?
        private void UpArrow()
        {
            //Do something when the UP arrow is pressed   
        }

        private void DownArrow()
        {
            //Do something when the DOWN arrow is pressed   
        }

        private void LeftArrow()
        {
            //Do something when the LEFT arrow is pressed   
        }

        private void RightArrow()
        {
            //Do something when the RIGHT arrow is pressed   
        }

    }
}

Thanks for taking the time to read my post.

Regards,


The Thing.