IDE: vs2k5 partial class

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
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.
 
Back
Top