Hi - apparently there is a problem renaming a control in a Windows Form. Itbreaks the visual designer in Visual Studio.

Here is what I did:I added two buttons to my form.Attached an event handler for the click methods.Entered some code in the event handler methods (in the code view).Renamed the button controls using Shift-F6.Compiled and successfully ran the program.

I then shifted to the visual designer to add more controls to the form, andfound that the buttons I had put in was blank and the designer wascomplaining about the buttons not having any names.

I am using build 86.

Kind regardsThomas Koch

Votes

0

Share

this is actually a known problem. If you rename a control,the Control.Name property should be changed in order for the form designerto workproperly. Currently ReSharper's rename refactoring does not change thisproperty automatically.The URL for the request is:http://www.intellij.net/tracker/resharper/viewSCR?publicId=1997

Hi - apparently there is a problem renaming a control in a Windows Form.

It

breaks the visual designer in Visual Studio.

>

Here is what I did:I added two buttons to my form.Attached an event handler for the click methods.Entered some code in the event handler methods (in the code view).Renamed the button controls using Shift-F6.Compiled and successfully ran the program.

>

I then shifted to the visual designer to add more controls to the form,

and

found that the buttons I had put in was blank and the designer wascomplaining about the buttons not having any names.

Please tell me this will be fixed in a near build! Once you becomeaccustomed to using the Rename feature, and if you forget and rename aWinForms component, you'll remember quickly with all the undo's...

this is actually a known problem. If you rename a control,the Control.Name property should be changed in order for the form designerto workproperly. Currently ReSharper's rename refactoring does not change thisproperty automatically.The URL for the request is:http://www.intellij.net/tracker/resharper/viewSCR?publicId=1997

Hi - apparently there is a problem renaming a control in a Windows Form.

It

breaks the visual designer in Visual Studio.

>

Here is what I did:I added two buttons to my form.Attached an event handler for the click methods.Entered some code in the event handler methods (in the code view).Renamed the button controls using Shift-F6.Compiled and successfully ran the program.

>

I then shifted to the visual designer to add more controls to the form,

and

found that the buttons I had put in was blank and the designer wascomplaining about the buttons not having any names.

Please tell me this will be fixed in a near build! Once you becomeaccustomed to using the Rename feature, and if you forget and rename aWinForms component, you'll remember quickly with all the undo's...

Here is what I did:I added two buttons to my form.Attached an event handler for the click methods.Entered some code in the event handler methods (in the code view).Renamed the button controls using Shift-F6.Compiled and successfully ran the program.

>

I then shifted to the visual designer to add more controls to the

form,

and

found that the buttons I had put in was blank and the designer wascomplaining about the buttons not having any names.