Problem:
How to delete event handler code in a COBOL win/web form.
Resolution:
If you accidently create an event handler and then want to delete the event handler code you have to do so in design view not in code view because some event handler code is also in the design.
To delete event handler code in design view:
1) Switch to design view
2) Click on the control for which you want to delete the event handler
3) In the properties window cick on the event handler icon (looks like a lightening bolt)
4) Find the event handler that you want to delete in the list and just delete its name so that the name is blank