How to convert Windows Forms 1.1 to 2.0 to use partial classes?

J

Johndoe

Hi,

Can someone give me some pointers as to how to convert a WinForms 1.1 to 2.0
to use partial classes? Maybe a good article on the Net? I already converted
my application from 1.1 to 2.0, but the new forms are not using partial
classes.

Thanks.
 
T

TheSteph

You have to do it manually !



Advice : do it with Visual Studio's Editor, but not "In the project" (you'll
get problems !); instead open an "empty instance" of VS and open only the
*.cs file you need to split, then split them manually into *.cs and
*.Designer.cs .



When finished it should be ok to re-open your full project and compile it.



Steph.
 
J

Johndoe

Thanks Steph.


TheSteph said:
You have to do it manually !



Advice : do it with Visual Studio's Editor, but not "In the project"
(you'll
get problems !); instead open an "empty instance" of VS and open only the
*.cs file you need to split, then split them manually into *.cs and
*.Designer.cs .



When finished it should be ok to re-open your full project and compile it.



Steph.
 
J

Johndoe

It's a hobby application. I want to keep it "up-to-date" so that it will be
hopefully easier when I have to port it to .NET 3.0 / WPF and futher
technologies later on.
 
J

John Vottero

TheSteph said:
You have to do it manually !



Advice : do it with Visual Studio's Editor, but not "In the project"
(you'll
get problems !); instead open an "empty instance" of VS and open only the
*.cs file you need to split, then split them manually into *.cs and
*.Designer.cs .

I didn't have any problems doing it "in the project".
 

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