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
2306
Make Keys.Enter work like Keys.Tab on the UltraDateTimeEditor
posted

Hello,

How to Make Keys.Enter work like Keys.Tab on the  UltraDateTimeEditor ?

i have tried with this code but it does not work.

 

KeyActionMapping newKam;
foreach (KeyActionMapping ugKam in dateTimeEditor.KeyActionMappings)
    if (ugKam.KeyCode == Keys.Tab)
       {
          newKam = new KeyActionMapping(Keys.Enter, ugKam.ActionCode, ugKam.StateDisallowed, ugKam.StateRequired, ugKam.SpecialKeysDisallowed, ugKam.SpecialKeysRequired);
                    dateTimeEditor.KeyActionMappings.Add(newKam);
         }

 

How can i fix that?

thank you

Parents
No Data
Reply Children
No Data