Example #1
0
 private void Find()
 {
     if (btNext.Checked)
     {
         tb.FindNext(tbFind.Text);
     }
     else
     {
         tb.FindPrevious(tbFind.Text);
     }
 }
Example #2
0
 private void btFindNext_Click(object sender, EventArgs e)
 {
     try
     {
         /*if (!Find(tbFind.Text))
          *  MessageBox.Show("Not found");*/
         //Find(tbFind.Text);
         tb.FindNext(tbFind.Text);
     }
     catch (Exception ex)
     {
         //MessageBox.Show(ex.Message);
     }
 }