private void SendSpecialKeyEvent(Keys keyCode) { if (null != SpecialKeyEvent) { SpecialKeyEventArgs args = new SpecialKeyEventArgs(); args.FieldId = FieldId; args.KeyCode = keyCode; SpecialKeyEvent(this, args); } }
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; } }
private void SendSpecialKeyEvent( Keys keyCode ) { if ( null != SpecialKeyEvent ) { SpecialKeyEventArgs args = new SpecialKeyEventArgs(); args.FieldId = FieldId; args.KeyCode = keyCode; SpecialKeyEvent( this, args ); } }