SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

WinForms code editor: improve renaming

Last post 02-24-2016 10:53 AM by Juergen Thomas. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 02-24-2016 10:53 AM

    WinForms code editor: improve renaming

    If I rename a WinForms control's name inside the code editor using the built-in function (Strg-R / right-click > Rename/Umbenennen), each occurrence is renamed. Only two situations in the Designer.cs are omitted; I suggest to change these ones in the same way. Say "oldControl" the old name of the control and "newControl" the new name.

    // oldControl
    newControl.name = "oldControl";

    It's a little bit confusing if the comment line isn't changed, but no problem. It may be more confusing if the newControl is registered with the old name. I don't know in which situations the name is used or shown. It would be better to avoid any confusion.

    Thanks, Juergen

    SharpDevelop Version : 5.0.0.4755-c848dc28
    .NET Version         : 4.5.51209

    Filed under: ,
Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.