Monday, December 3, 2012

Enter key navigation in c#


protected override void OnKeyDown(KeyEventArgs e)

{


if (e.KeyCode == Keys.Enter)

{

SelectNextControl(ActiveControl,true, true, true, true);

 
e.Handled = true;


}

}

No comments:

Post a Comment