public void ActivateTextEditor() { scintilla.ActivateTextEditor(); if (scintilla.CurrentLine == 0) //If no item was seleced via Find/Replace etc { scintilla.GoToLine(_firstVisibleLine); } }