Beispiel #1
0
        private void txtNewValue_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
            case Keys.Enter:
                AddNewValue( );
                e.Handled = true;
                break;

            case Keys.Escape:
                needValidation = false;
                shape.HideEditor( );
                e.Handled = true;
                break;

            case Keys.Tab:
                txtName.Focus( );
                e.Handled = true;
                break;
            }
        }
 protected override void HideEditor()
 {
     NeedValidation = false;
     shape.HideEditor();
 }