title: Make Find function for Notepad with TextBox in C#
body: <p>I am making a copy of a Windows Notepad and I'm stuck at "FIND" function. Honestly I have no clue how to make it. I've been searching for a while and everyone suggests RichTextBox because it has implemented find function but the point is i need to make it using textbox. </p>
  
  <p>So I've made new form, connected it with main form. I made class which looks like:</p>
  
  <pre><code>public bool FindAndSelect(string TextToFind, bool MatchCase, bool UpDown)
  {
  }
  </code></pre>
  
  <p>But I don't know what to write in it to work. I've made find button in find form with function</p>
  
  <pre><code>if (((fNotepad)this.Owner).FindAndSelect(this.textBoxFind.Text, this.rbUpDown.Checked, this.cbMatchCase.Checked) == false)
  {
      MessageBox.Show("Cant find selected text");
  }
  else this.Close();
  </code></pre>
  
  <p>And I know what I have to do but I don't know to code it .. any help would be appreciated! ty</p>