Use ENTER key instead TAB key?

protected override bool ProcessDialogKey(Keys keyData)
{
if (keyData == Keys.Enter)
{
Control c = this.GetNextControl(ActiveControl, true);
if (c != null)
{
c.Focus();
}
}
return base.ProcessDialogKey(keyData);
}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.