private void findNextToolStripMenuItem_Click(object sender, EventArgs e) { EditorTabPage etb = GetActiveTab(); if (etb != null) { int index = etb.Find(findDialog.Search, findDialog.Options); if (index >= 0) { etb.ScrollToOffset(index); } } }
private void findNextToolStripMenuItem_Click(object sender, EventArgs e) { TabPage tb = tabControl1.SelectedTab; if (tb as EditorTabPage == null) { return; } EditorTabPage etb = tb as EditorTabPage; int index = etb.Find(findDialog.Search, findDialog.Options); if (index >= 0) { etb.ScrollToOffset(index); } }
private void findToolStripMenuItem_Click(object sender, EventArgs e) { TabPage tb = tabControl1.SelectedTab; if (tb as EditorTabPage == null) { return; } EditorTabPage etb = tb as EditorTabPage; findDialog.SetFocusOnSearchTextField(); if (findDialog.ShowDialog() == DialogResult.OK) { int index = etb.Find(findDialog.Search, findDialog.Options); if (index >= 0) { etb.ScrollToOffset(index); } } }