WinForm 重写ProcessDialogKey将回车响应为tab键

protected override bool ProcessDialogKey(Keys keyData)
        {
            if (keyData == Keys.Enter && !(this.ActiveControl is Button))
            {
                keyData = Keys.Tab;
            }
            return base.ProcessDialogKey(keyData);
        }

作者: 红旗飘飘   发布时间: 2011-03-10