title: Hook method to various boxes whenever one of the text box changes text, is there a simple way?
body: <p>I wanna keep my program information updated, so I've been using the same method over and over again in each of these text changed method</p>
  
  <pre><code>private void textBox5_TextChanged(object sender, EventArgs e)
      { //specific code for textBox5
        updatedatamethod(); }
  
  private void textBox6_TextChanged(object sender, EventArgs e)
      { //specific code for textBox6
        updatedatamethod(); }
  
  private void textBox7_TextChanged(object sender, EventArgs e)
      { //specific code for textBox7
        updatedatamethod(); }
  
  private void textBox8_TextChanged(object sender, EventArgs e)
      { //specific code for textBox8
        updatedatamethod(); }
  </code></pre>
  
  <p>etc...</p>
  
  <p>I have the feeling this is a very crude way to program, since I'm not a native programmer I'm wondering if there's a technical more simple way to do it.</p>
  
  <p>Note that I don't want all the text boxes to do the updatedatamethod, but only some of them</p>
  
  <p>Edit: working on winforms</p>
  
  <p>Edit2: some users marked this as a duplicate and posted a link, I understand it, but I don't agree. I don't wanna do only the <code>updatedatamethod</code> i posted on my example, I also wanna do other specific button code besides that. The answer linked as a duplicate, assumes you wanna do the exactly same thing and nothing else on every item. </p>