src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/VirtualTreeControl.cs
/// <summary>
///     Call this method from the OnKeyPress override in
///     the in place control.
/// </summary>
/// <param name="e">The KeyPressEventArgs</param>
/// <returns>Returns true if the keystroke was handled, indicating that further processing is not needed.</returns>
Call this method from the OnKeyPress override in
the in place control.
Call this method from the OnKeyPress override in the in place control .
public override sealed bool OnKeyPress(KeyPressEventArgs e)
            {
                if (0 != (Flags & VirtualTreeInPlaceControls.ForwardKeyEvents))
                {
                    Parent.OnKeyPress(e);
                }
                if (e.KeyChar == (char)(int)Keys.Return)
                {
                    e.Handled = true;
                }
                return e.Handled;
            }
public override sealed bool OnKeyPress ( KeyPressEventArgs e ) { if ( 0 != ( Flags & VirtualTreeInPlaceControls . ForwardKeyEvents ) ) { Parent . OnKeyPress ( e ) ; } if ( e . KeyChar == ( char ) ( int ) Keys . Return ) { e . Handled = true ; } return e . Handled ; }
Call this method from the OnKeyPress override in
the in place control.
Call this method from the OnKeyPress override in the in place control .
// Eat the character, so edit control wont beep!
Returns true if the keystroke was handled, indicating that further processing is not needed.
Returns true if the keystroke was handled indicating that further processing is not needed .
e
KeyPressEventArgs
None