Esempio n. 1
0
        private void SendSpecialKeyEvent(Keys keyCode)
        {
            if (null != SpecialKeyEvent)
            {
                SpecialKeyEventArgs args = new SpecialKeyEventArgs();

                args.FieldId = FieldId;
                args.KeyCode = keyCode;
                SpecialKeyEvent(this, args);
            }
        }
Esempio n. 2
0
        private void OnSpecialKey(Object sender, SpecialKeyEventArgs e)
        {
            switch (e.KeyCode)
            {
            case Keys.Back:

                if (e.FieldId > 0)
                {
                    _fieldControls[e.FieldId - 1].HandleSpecialKey(Keys.Back);
                }
                break;

            case Keys.Home:

                _fieldControls[0].TakeFocus(Direction.Forward, Selection.None);
                break;

            case Keys.End:

                _fieldControls[NumberOfFields - 1].TakeFocus(Direction.Reverse, Selection.None);
                break;
            }
        }
      private void OnSpecialKey( Object sender, SpecialKeyEventArgs e )
      {
         switch ( e.KeyCode )
         {
            case Keys.Back:

               if ( e.FieldId > 0 )
               {
                  _fieldControls[e.FieldId-1].HandleSpecialKey( Keys.Back );
               }
               break;

            case Keys.Home:

               _fieldControls[0].TakeFocus( Direction.Forward, Selection.None );
               break;

            case Keys.End:

               _fieldControls[NumberOfFields - 1].TakeFocus( Direction.Reverse, Selection.None );
               break;
         }
      }
Esempio n. 4
0
      private void SendSpecialKeyEvent( Keys keyCode )
      {
         if ( null != SpecialKeyEvent )
         {
            SpecialKeyEventArgs args = new SpecialKeyEventArgs();

            args.FieldId = FieldId;
            args.KeyCode = keyCode;
            SpecialKeyEvent( this, args );
         }
      }