I'll write the answer he didn't, so the next person who searches for this finds something.
The form file (.lfm) says "Button3's OnClick is Button3Click". The code deleted earlier was Button3Click. So the form points at a method that no longer exists.
Lazarus notices when you open the form and offers to repair it by removing the dangling reference. Say yes. Or fix it by hand:
- Right-click the form, View Source (.lfm).
- Find the line
OnClick = Button3Click and delete it.
- Switch back to the form.
To avoid it next time, clear the event in the Object Inspector before deleting the method. An empty handler is also removed automatically when you save.
Read the error message. Then read it again.