CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 4/11/2004 10:10:49 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 5 Views: 33 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
6 Items, 1 Pages 1 |< << Go >> >|
SonuKapoor
Asp.Net User
Refactor: Rename4/11/2004 10:10:49 PM

0/0

Hi guys,

i just tried the "rename feature" and it does not do what I actually excepted! I have defined a global variable in my class in C#. In a Form1 function I assign the value 5 to that variable. Now when I use the rename feature in the declaration, I hoped that it should also rename the variable name in the "Form1" function, but it does not. Is that supposed to work like this ?

Thanks!
Sonu Kapoor [MVP]
DotNetSlackers.com
Feel free to ask me any .NET question
SonuKapoor
Asp.Net User
Re: Refactor: Rename4/11/2004 10:19:49 PM

0/0

I just recognized that it works but the variable has to be in the same function. Well..again my question is: Is that supposed to work like this ?

Thanks!
Sonu Kapoor [MVP]
DotNetSlackers.com
Feel free to ask me any .NET question
Fredrik N
Asp.Net User
Re: Refactor: Rename4/11/2004 11:38:30 PM

0/0

If you right click on a local variable for you Form1, and select Refactor and Rename... it will automatically locate all the variables with that name, and let you choose which ones you want to rename. It works in for me. If I choose a constructor, method etc, it will search in the whole project for. But it for private field, it will only search in the current class.

/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
SonuKapoor
Asp.Net User
Re: Refactor: Rename4/12/2004 12:54:59 AM

0/0

this is my code:


public partial class Form1 : System.Windows.Forms.Form
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
public int m_i = 10;
public Form1()
{
InitializeComponent();
MyNewMethod();

m_i = 16;
}
}


Now if I use the rename feature in the Form1 function, it only renames the line "public int m_i = 10", but not the one in Form1. Why ?

Thanks again for your help.
Sonu Kapoor [MVP]
DotNetSlackers.com
Feel free to ask me any .NET question
Fredrik N
Asp.Net User
Re: Refactor: Rename4/12/2004 7:13:32 AM

0/0

Strange, when I do it it renames both. Do you have the CTP version of VS.Net 2005?
/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
SonuKapoor
Asp.Net User
Re: Refactor: Rename4/12/2004 12:31:46 PM

0/0

I have the latest download from the MSDN, just few days ago!
Sonu Kapoor [MVP]
DotNetSlackers.com
Feel free to ask me any .NET question
6 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro NetBeans IDE 5.5 Enterprise Edition: enterprise edition Authors: Adam Myatt, Pages: 445, Published: 2007
Professional Visual Studio 2005 Team System Authors: Jean-Luc David, Tony Loton, Erik Gunvaldson, Christopher Bowen, Noah Coad, Darren Jefford, Pages: 700, Published: 2006
The Java Developer's Guide to Eclipse Authors: Jim D'Anjou, Sherry Shavor, Scott Fairbrother, Dan Kehn, John Kellerman, Pat McCarthy, Pages: 1136, Published: 2004
Pro Visual Studio Team System with Team Edition for Database Professionals: With Team Edition for Database Professionals Authors: Jeff Levinson, David Nelson, Pages: 617, Published: 2007
JBuilder Developer's Guide Authors: Michael Landy, Saleem Siddiqui, Jeff Swisher, Pages: 990, Published: 2003
Pro NetBeans IDE 6 Rich Client Platform Edition: Rich Client Platform Edition Authors: Adam Myatt, Brian Leonard, Geertjan Wielenga, Pages: 491, Published: 2008
Programming ASP.NET: Building Web Applications and Services with ASP.NET 2.0 Authors: Jesse Liberty, Dan Hurwitz, Pages: 930, Published: 2005
Inside Delphi 2006 Authors: Ivan Hladni, Pages: 742, Published: 2006
Professional Refactoring in Visual Basic Authors: Danijel Arsenovski, Pages: 517, Published: 2008
Object-oriented Reengineering Patterns Authors: Serge Demeyer, Stéphane Ducasse, Oscar Marius Nierstrasz, Pages: 282, Published: 2003

Web:
Know Dot Net - NET Refactor - Rename Parameters NET Refactor automates renaming parameters in a method and changing all references to changed variables.
MSDN Visual Studio Extensibility How do I implement Refactor ... How do I implement Refactor->Rename all references? ... If you want to invoke refactor function of C# language service and just rename one symbol, ...
Rename Rename is a refactoring feature in the Visual Studio integrated development ... Rename refactoring is available from the following Visual Studio features: ...
Refactor: Rename - ASP.NET Forums If you right click on a local variable for you Form1, and select Refactor and Rename... it will automatically locate all the variables with that name, ...
Refactor - Rename Binding Feature - WOProject / WOLips - Confluence Select Edit -> Refactor -> Rename (or press Cmd-2, R which means first press Cmd and 2 together, then release and press R key) ...
Rickard Nilsson - ReSharper User tip #2: Refactor rename namespace Aug 26, 2008 ... How to rename a namespace for all of its classes using ReSharper.
[#FB-13932] Source menu item Source->Refactor->Rename is disabled ... Choose Source->Refactor->Rename in top level menu Actual Results: Source-> Refactor->Rename is disabled Expected Results: Maybe this menu item only refers to ...
[#IDEADEV-13230] Assertion error throw ApplicationImpl ... assertReadAccessAllowed() on Refactor / Rename symbol used anywhere ... Refactor / Rename of class, method or field used anywhere (e.g. method, ...
[[Tools] PDT-] Refactor->Rename option should not be displayed (or ... 1. Open a php file 2. Right click - Refactor Expected: No Refactor entry Actual: exists and does nothing (sometimes throws log error) eclipse.
Re: Eclipse Refactor/rename not working: msg#00084 Previous by Date: Re: Eclipse Refactor/rename not working, Roberto Franchini. Next by Date: Fw: [VOTE] FileUpload 1.0 Final Release Plan, Arnaud Vandyck ...

Videos:
C#/Xna - Refactor Renaming For a high-res version please visit www.3dbuzz.com. This is part of a video helpfile that is constantly updated on www.3dbuzz.com. Don't worry the hi...
Programming Robotron in C# part 4 I'm sure you can see what's been added here! Yay! We have a player! Surprisingly the player movement and firing code was easy as pie to implement. L...




Search This Site:










installation issues...

recovering/decompiling asp.net website

order of document tabs in vs 2005

problem with manifest

have you ever seen that ??

compile time error: ticks must be between datetime.minvalue.ticks and datetime.maxvalue.

different name for app_code.dll?

where did page.header.linkedstylesheets go to??

intellisense question...

code generators in c#

editor (or maybe vsts) mixing up my databinding code?

asp.net development server not automatically starting

server explorer problem

vs 2005 sp1 problem

question on project dependency

how to manage a project that must be customized many times for many customers

vs problem with masterpage set in web.config

renaming a control in a big solution hangs

ms expressions web - does it help?

web deployment - generating application in virtual directory

list of used server ids

web deployment project - missing file on output dir...

vs 2005 control event question

localization in vs2005 using satellite assemblies

standard control toolbox disable in webform

website publish - exclude images?

how do i enable toolbox tabs that are disabled

serial number

com error from designer when adding a dataset?

vs2005 and references

  Privacy | Contact Us
All Times Are GMT