Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4695
ultraNumericEditor keydown event
posted

Dear all,

I have several ultraNumericEditor controls with keydown event. I find out that the value of the UltraNumericEditor is cleared after another numericEditor is selected by Enter Key Down. Do you know why??

protected void enterKeyEvent(object sender, System.Windows.Forms.KeyEventArgs e)
        {
            int keyCode = (int)e.KeyCode;

            if (keyCode == (int)Keys.Enter)
            {
                Infragistics.Win.UltraWinEditors.UltraNumericEditor temp = ((Infragistics.Win.UltraWinEditors.UltraNumericEditor)sender);
                if (temp.Name == "neCatty")
                                       neTael.Select();
                 else if(temp.Name=="nePound")
                    neTael.Select();
                else if (temp.Name == "neTael")
                    neMace.Select();
                else if (temp.Name == "neMace")
                    neCandareen.Select();
                else if (temp.Name == "neCandareen")
                    btnOK.Select();
            }
            else if (keyCode == (int)Keys.Escape)
            {
                this.btnCancel_Click(this, null);
            }
        }