471,326 Members | 2,432 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,326 software developers and data experts.

IDE: vs2k5 partial class

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
Jan 5 '06 #1
2 1045
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

"Christopher" <Ch*********@discussions.microsoft.com> wrote in message
news:1F**********************************@microsof t.com...
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

Jan 5 '06 #2
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.
--

Stoitcho Goutsev (100)

"Christopher" <Ch*********@discussions.microsoft.com> wrote in message
news:1F**********************************@microsof t.com...
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

Jan 5 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.