Delete the event procedure in the properties window for the control, then select [Event Procedure] in the dropdown. click on the button with three dots. This will open the Visual Basic editor at a new created procedure. More the code to this new procedure and delete the old procedure.