How do I change the name of an existing event handler?

后端 未结 2 591
遥遥无期
遥遥无期 2020-12-10 18:43

In Windows Forms, if you change the method name (for example, button1_Click) to something else, it doesn\'t work any more.

I find this strange because i

2条回答
  •  独厮守ぢ
    2020-12-10 19:21

    You can of course change the name of your event. It just sounds like you don't know about the designer file :)

    The designer file is just the result of your UI design, and if you don't update the name of your event in the UI it does not compile :)

提交回复
热议问题