SearchTextBox.cs
/// <summary>
/// Overridden for searching on key strokes
/// </summary>
Overridden for searching on key strokes
Overridden for searching on key strokes
protected override void OnKeyDown(KeyEventArgs e)
        {
            base.OnKeyDown(e);
            if (e.Control)
            {
                if (e.KeyCode == Keys.F)
                    if (SetSearchString()) FindNextMatch();
                else if (e.KeyCode == Keys.F3)
                    FindPrevMatch();
                else if (e.KeyCode == Keys.L)
                    CutLine();
                else if (e.KeyCode == Keys.V)
                {
                    this.Paste(DataFormats.GetFormat(DataFormats.Text));
                    e.Handled = true;
                }
            }
            else if (e.Shift)
            {
                if (e.KeyCode == Keys.F3)
                    FindPrevMatch();
            }
            else if (e.KeyCode == Keys.F3)
                FindNextMatch();
            else if (e.KeyCode == Keys.F2)
                FindPrevMatch();
        }
protected override void OnKeyDown ( KeyEventArgs e ) { base . OnKeyDown ( e ) ; if ( e . Control ) { if ( e . KeyCode == Keys . F ) if ( SetSearchString ( ) ) FindNextMatch ( ) ; else if ( e . KeyCode == Keys . F3 ) FindPrevMatch ( ) ; else if ( e . KeyCode == Keys . L ) CutLine ( ) ; else if ( e . KeyCode == Keys . V ) { this . Paste ( DataFormats . GetFormat ( DataFormats . Text ) ) ; e . Handled = true ; } } else if ( e . Shift ) { if ( e . KeyCode == Keys . F3 ) FindPrevMatch ( ) ; } else if ( e . KeyCode == Keys . F3 ) FindNextMatch ( ) ; else if ( e . KeyCode == Keys . F2 ) FindPrevMatch ( ) ; }
Overridden for searching on key strokes
Overridden for searching on key strokes
e
KeyEventArgs