Remove form button and remove code [closed]

0

Good afternoon, how can I clean the code in the situation where, I put the buttons according to a certain use, then we resolve to take the buttons but the codes are there, (click events) How can I remove the button and remove events and references without undoing the program?

    
asked by anonymous 08.02.2018 / 17:58

1 answer

2

Probably the error should be after deletion:

ThishappenswhenyouclickonthecontroltwicetocreateaneventitlinkstheeventtoForm1.Designer.cs,soifyousimplydeletetheeventinthecodeitwillgeneratethaterror.

Solutions:

1stRemovingfromtheavailableeventslistedintheToolstab.

2ºRemoveDirectlyonForm1.Design.cs

I hope I have helped !!!

    
08.02.2018 / 19:48