I am newbie in C#. while working in Windows Forms Designer if any controls get double-clicked by mistake it places the clicked event on the Form.cs (ie: private void UserAddBtn_Click(object sender, EventArgs e). how can I remove all the references of this event while staying in Forms designer or w/o going thru manual removal.
Thanks in advance....
You can clear the event handler by deleting it from the properties dialog.
Go to the events tab and find the double click event. You can then delete the event handler from there.
if you select the item you want to remove in the form designer, then right click on the lightning bolt and click "reset" it works for me. I couldn't make it work as explained above. I'm using Visual studio express 2013 V12 - Update 4.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With