示例#1
0
 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);
 }
示例#2
0
        /// <summary>
        /// Activate the find control
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void findToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (searchBox == null || searchBox.IsDisposed)
            {
                searchBox     = new SearchBox();
                searchBox.rtb = richTextBox1;
            }

            //this.Hide();
            searchBox.Show();
        }
        /// <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();
        }