Q:

visual studio refactoring / renaming does not update Name property

Visual Studio 2010.
In the form designer .cs file:
Before refactor / rename:
        // TextBox1
        this.TextBox1.Name = "TextBox1";

After refactor / rename:
        // TextBox1
       this.MyTextBox.Name = "TextBox1";

After some time (which includes Run, Quit, Edit the form...):
        // MyTextBox
       this.MyTextBox.Name = "MyTextBox";

How can I force Visual Studio to update the Name property right away?

A:

When you use Refactor > Rename, make sure the Search in strings checkbox is set.

