title: C# Form Application: How to avoid deleting the unwanted events "manually" from InitializeComponent()?
body: <p>This is a simple scenario:</p>
  
  <p>I add an event to a control on the form by double clicking on its field (in Events part). But, then I decide that it was unnecessary and delete the automatically generated method. I'll run the program and it gives an error telling me that the event still exists in the <code>InitializeComponent()</code> and I must delete it from there.</p>
  
  <p>So, is there anyway to avoid deleting the event "manually"? Is there anyway to fully delete it without leaving any trace (specially in <code>InitializeComponent()</code>)?</p>
  
  <p><strong>Update:</strong> Also, another question arose:</p>
  
  <p>When I delete the method from the code, the method name in the event field will disappear. So, if the <code>InitializeComponent()</code> is linked to these events, why isn't it updated with the empty event field? </p>