All pastes #1816880 Raw Edit

MyButton.cs

public text v1 · immutable
#1816880 ·published 2010-03-01 10:27 UTC
rendered paste body
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace WindowsFormsApplication1
{
    public class MyButton : System.Windows.Forms.Button
    {
        protected override bool IsInputKey(Keys keyData)
        {
            bool ret = true;

            switch (keyData)
            {
                case Keys.Left:
                    break;
                case Keys.Right:
                    break;
                case Keys.Up:
                    break;
                case Keys.Down:
                    break;
                case Keys.Tab:
                    break;
                default:
                    ret = base.IsInputKey(keyData);
                    break;
            }
            return ret;
        }

       
    }
}