title: C#: change button name and click function name
body: <p>I am starting with C# programming, I have a scenario, where I create a windows form application. I have created a button inside the form and double click it to generate its associated click function. The visual studio generates the function with default name.</p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
  {
  
  }
  </code></pre>
  
  <p>Now when I rename the button in properties, the function name remains same, making it difficult to relate button and function, I have an old code where a lot of such cases are present. So, I cannot delete and recreate the buttons and other things.</p>
  
  <p>How can I rename the functions when I rename the button?</p>