This question already has an answer here:
Manual editing of *.designer.cs file
This is why you don't edit the designer code. It's specifically designed to not maintain these types of changes.
You should be subscribing to the event in the object's constructor, load event, or some similar location.