Mayur Gujrathi

Mayur Gujrathi

  • NA
  • 119
  • 403.1k

Problem

Nov 24 2010 11:14 PM
Respected Developers
I have used following code for navigating between controls on enter click.But It is working properly on only forms.But In my project I have used User controls instead of forms. I am calling user controls on form, But this code is not working properly for user controls
Please help

 protected override void OnKeyUp(System.Windows.Forms.KeyEventArgs e)
        {
            if (e.KeyCode  == Keys.Enter)
            {
                e.Handled = true;
                this.ProcessTabKey(!e.Shift);
            }
            else
            {
                e.Handled = false;
                base.OnKeyUp(e);
            }
        }