Winform 用回车代替TAB

//Winform 用回车代替TAB
protected override bool ProcessDialogKey(Keys keyData)
{
if (keyData == Keys.Return)

        this.SelectNextControl(this.ActiveControl, true, true, true, true);
}
return base.ProcessDialogKey(keyData);
}
posted @ 2008-02-24 17:03  拒绝潜水的鱼  阅读(338)  评论(0编辑  收藏  举报