Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Find references problem in Orcas beta 2
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

enigma
Senior Member

49 Posts

Posted - Oct 22 2007 :  11:32:41 PM  Show Profile  Reply with Quote
VA's find reference cannot detect variables in the designer class. To reproduce the problem, try the following step:

  • Create a Windows Form in Windows Form C# project

  • Add a button to it

  • Make a reference to the button control by putting in the following code:
    private void Form1_Load(object sender, EventArgs e)
    {
    button1.Enabled = false;
    }

  • Place your mouse cursor at button1 and wait for the VA refactoring tool tip to appear.

  • Click on the "Find reference" option, and you will only get 1 reference, namely this:
    button1.Enabled = false;

  • You should also detect other references to button1 that are hidden inside the designer class, since this is the default behavior of Orcas find reference option




http://itscommonsensestupid.blogspot.com/

feline
Whole Tomato Software

United Kingdom
18948 Posts

Posted - Oct 23 2007 :  10:09:01 AM  Show Profile  Reply with Quote
Which version of VA are you using?

For me VA is returning 11 references in 2 files.

I started with a VS2005 form project, and this worked correctly there. I then opened the project in VS2008, and converted it, and and it still works correctly.

The solution contains the files "Form1.cs", "Form1.Designer.cs" and "Form1.resx"
The found references are in "Form1.cs" and "Form1.Designer.cs"

zen is the art of being at one with the two'ness
Go to Top of Page

enigma
Senior Member

49 Posts

Posted - Oct 23 2007 :  8:52:30 PM  Show Profile  Reply with Quote
quote:
Originally posted by feline

Which version of VA are you using?

For me VA is returning 11 references in 2 files.

I started with a VS2005 form project, and this worked correctly there. I then opened the project in VS2008, and converted it, and and it still works correctly.

The solution contains the files "Form1.cs", "Form1.Designer.cs" and "Form1.resx"
The found references are in "Form1.cs" and "Form1.Designer.cs"



I am using 1609 in Orcas 2. Thought there was no ambiguity in my description because I specified Orcas in my post and 1609 was the only version that work with it.

http://itscommonsensestupid.blogspot.com/
Go to Top of Page

enigma
Senior Member

49 Posts

Posted - Oct 23 2007 :  9:04:18 PM  Show Profile  Reply with Quote
I use VA 1614 and the problem goes away. It seems that the problem is fixed in VA 1614. Thank you for your help

http://itscommonsensestupid.blogspot.com/
Go to Top of Page

bretheart
Starting Member

1 Posts

Posted - Nov 01 2007 :  08:20:01 AM  Show Profile  Reply with Quote
Yeah he is right.....In VA 1614,the problem is fixed.... i am also using same VA1614....anyhow thx a lot

Pest control devices
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000