how can I disable this "function" in VS2005

  • Thread starter Thread starter Agnes
  • Start date Start date
A

Agnes

When I rename one form from A to B , it helps me to change all the related
form A into B automically
How Can i disable it??
Thanks
 
When I rename one form from A to B , it helps me to change all the related
form A into B automically
How Can i disable it??
Thanks

The title says "function" but the body of your email says "form". When
you copy-paste a form it's easy to get into strange errors. What I
advise you do is go to form A in the solution explorer, then press go
into the code and make sure the line at the top of the file reads:

private class FormA

Then go back to the solution explorer, hit the expand key beside the
form and edit a file which would be named FormA.designer.vb Then make
sure it's also has the line

private class FormA.

Then go to form B and ensure those values are both different from the
ones above.

Phill
 
Agnes said:
When I rename one form from A to B , it helps me to change all the
related form A into B automically
How Can i disable it??
Thanks

If you refer to the file name:
Menu Tools -> Options: Projects and solutions -> General: "[X] Prompt
for symbolic renaming..."


Referring to the class name in the property window:
Menu Tools -> Options: Windows Form Designer -> General: "[ ] Enable
refactoring on rename"
(I wished there was an "ask" option in addition to True and False)


Armin
 
Back
Top