Renaming problems with windows forms

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 was
complaining about the buttons not having any names.

I am using build 86.

Kind regards
Thomas Koch


3 comments
Comment actions Permalink

Thomas,

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

"Thomas Koch" <thomask_ts@yahoo.dk> wrote in message
news:caeqvf$mcm$1@is.intellij.net...

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 was
complaining about the buttons not having any names.

>

I am using build 86.

>

Kind regards
Thomas Koch

>
>


0
Comment actions Permalink

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

Thanks,
Derek Price

"Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in message
news:cajneu$5r1$1@is.intellij.net...

Thomas,

>

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

>

"Thomas Koch" <thomask_ts@yahoo.dk> wrote in message
news:caeqvf$mcm$1@is.intellij.net...

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 was
complaining about the buttons not having any names.

>

I am using build 86.

>

Kind regards
Thomas Koch

>
>

>
>


0
Comment actions Permalink

Cannot promise about the next build but it's planned for the release.

--
Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

"Derek Price" <dpriceat@dobledot.com> wrote in message
news:cak7fq$n0c$1@is.intellij.net...

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

>

Thanks,
Derek Price

>

"Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in message
news:cajneu$5r1$1@is.intellij.net...

Thomas,

>

this is actually a known problem. If you rename a control,
the Control.Name property should be changed in order for the form

designer

to work
properly. Currently ReSharper's rename refactoring does not change this
property automatically.
The URL for the request is:
http://www.intellij.net/tracker/resharper/viewSCR?publicId=1997

>

"Thomas Koch" <thomask_ts@yahoo.dk> wrote in message
news:caeqvf$mcm$1@is.intellij.net...

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 was
complaining about the buttons not having any names.

>

I am using build 86.

>

Kind regards
Thomas Koch

>
>

>
>

>
>


0

Please sign in to leave a comment.