IDE: vs2k5 partial class

G

Guest

Greetings,

By default Visual Studio 2005 starts each new project up with the code in
partial class form. Is there anyway I can change this behavior so that the
code is not split amongst different source files?


Im using the professional edition for c#.

Thanks,

Christopher
 
M

Marc Gravell

You could try editing the files in C:\Program Files\Microsoft Visual Studio
8\Common7\IDE\ItemTemplates\CSharp\1033\Form.zip - however, I'm not sure I
would recommend it... the new partial class functionality is designed to
make it a lot easier to separate your code from the designer's. What is the
issue having multiple source files?

Alternatively, just cut/paste the interesting bits, but don't be too
surprised if the designed eventually balks at you and discards all your UI
work...

Marc
 
S

Stoitcho Goutsev \(100\) [C# MVP]

Not that I know. Though if you create a form in .NET2003 and add the form to
the project VS will use correctly the old style (without partial classes).
However when form is created form VS2005 it will always create it as partial
class.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top