Click here to Skip to main content
15,889,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello.

I would like
to hold some functions of a form-derived partial class in the n-th file,
that is inserted by me into the project, and it works fine...

...but the new item is presented by a form icon in the workspace tree,
that opens the designer for the n-th new form on its double click... :)

Please observe the picture below:


The MetaCollect.cs file was inserted as a functional part
of the form-derived partial class in the MetaExportWizard.cs
However, the designer will be open by the double click at the MetaCollect.cs item too
and the second form template will be given to be edited... :)

Is there a way, please,
to hold an code file item "as source" only in the VSTA2008 (C#) workspace ?

Thank you !
Posted
Updated 28-Jul-10 20:05pm
v3
Comments
Toli Cuturicu 28-Jul-10 16:13pm    
Try to be more clear.

1 solution

The only way that *might* work is if you moved all the stuff is the resx file into your form, and delete the resx file. I have to caution you against doing this because then it presents a non-standard representation of files in the project, and programmers that are added to the project will probably balk.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900