ARCed.Scintilla.IncrementalSearcher.OnVisibleChanged C# (CSharp) Method

OnVisibleChanged() protected method

protected OnVisibleChanged ( EventArgs e ) : void
e EventArgs
return void
        protected override void OnVisibleChanged(EventArgs e)
        {
            base.OnVisibleChanged(e);

            txtFind.Text = string.Empty;
            txtFind.BackColor = SystemColors.Window;

            moveFormAwayFromSelection();

            if (Visible)
                txtFind.Focus();
            else if(Scintilla!=null)
                Scintilla.Focus();
        }