问题描述:

This question already has an answer here:

  • Manual editing of *.designer.cs file

    5 answers

网友答案:

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.

相关阅读:
Top