Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Renaming controls without messing up code?
Message
De
28/03/2008 00:09:40
 
 
À
27/03/2008 23:44:57
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01306371
Message ID:
01306372
Vues:
3
Don't do it in the property sheet. Find a reference to it in the code. Right-click on it and select Refactor.

>On a Windows Forms, how can I rename a control (using the Properties window in the IDE) knowing that there may be many event handlers and other references to the old name in other places in my codes?
>
>If you rename it immediately after placing it, you're ok, but what if you have already coded against it and then decide to rename it how do you fix all the references? Will it do it automatically or do I have to find all the places that need to be changed? Where all should I look?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform