Renaming methods does not rename delegate calls in partial classes

A typical example: add a button (buttonTest) to a form (FormTest) using the Windows Forms designer and double-click it. The result in the code is:

in the FormTest.designer.cs file:

this.buttonTest.Click += new System.EventHandler(buttonTest_Click);

in the FormTest.cs file:

private void buttonTest_Click(object sender, EventArgs e)


When I try to rename buttonTest_Click to ButtonTest_Click, it does not rename the delegate call in FormTest.designer.cs, which results in a compile-time error. Remark: the Visual Studio 2005 Refactor -> Rename works properly.

1 comment
Comment actions Permalink


We appreciate your feedback.

The corresponding JIRA request has been created, and you are welcome to monitor
its status at

Best regards,
- Development Team.


Please sign in to leave a comment.