首页  编辑  

按下方向键不切换焦点

Tags: /C#/界面处理/自定义控件/   Date Created:

protected override bool IsInputKey( Keys keydata)

{

    return (keydata == Keys . Down) || (keydata == Keys . Up) ||

       (keydata == Keys . Left) || (keydata == Keys . Right) ||

       (keydata == Keys . Escape) || base . IsInputKey(keydata);

}