public override void Execute(TextBoxControl editor) { if (_dlgFind == null) { _dlgFind = new FindForm(editor); } if (!_dlgFind.Visible) { _dlgFind.Show(); } //TextLocation homeLocation = editor.GetLineHomeInfo(editor.Caret.Line); //if (homeLocation != TextLocation.Empty) //{ // editor.Caret.Position = homeLocation; // editor.Caret.UpdateCaretPosition(); // if (editor.HorizontalScroll.Value != 0 && editor.HorizontalScroll.Visible) // { // editor.HorizontalScroll.Value = 0; // editor.PerformLayout(); // } //} }
public void ShowFindDialog() { FindForm _f = new FindForm(rtf); _f.Show(); }
private void findToolStripMenuItem_Click(object sender, EventArgs e) { findform = new ResxEditor.FindForm(); findform.OnFindPressed += f_OnFindPressed; findform.Show(this); }