private void findAgainToolStripMenuItem_Click(object sender, EventArgs e) { if (searchBox == null || searchBox.IsDisposed) { searchBox = new SearchBox(); searchBox.rtb = richTextBox1; searchBox.Show(); } searchBox.FindText(sender, e); }
/// <summary> /// Pressing the F3 and searching again inside rich text box /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void findAgain(object sender, EventArgs e) { if (searchBox == null || searchBox.IsDisposed) { searchBox = new SearchBox(); searchBox.Show(); } if (tabPageHindi.ContainsFocus) { searchBox.rtb = this.richTextBoxHindi; } else { searchBox.rtb = this.richTextBoxNepali; } searchBox.FindText(sender, e); //this.Hide(); //searchBox.Show(); }