Author |
Topic |
|
enigma
Senior Member
49 Posts |
Posted - Oct 22 2007 : 11:32:41 PM
|
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
19020 Posts |
Posted - Oct 23 2007 : 10:09:01 AM
|
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 |
|
|
enigma
Senior Member
49 Posts |
Posted - Oct 23 2007 : 8:52:30 PM
|
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/ |
|
|
enigma
Senior Member
49 Posts |
|
bretheart
Starting Member
1 Posts |
Posted - Nov 01 2007 : 08:20:01 AM
|
Yeah he is right.....In VA 1614,the problem is fixed.... i am also using same VA1614....anyhow thx a lot |
Pest control devices |
|
|
|
Topic |
|