Moving Win Generated Code to Partial Class

G

Guest

I have code that was converted from VB2003, to VB2005, is there a way to move
the Windows Generated Code out of the main class into a partial class as if
the forms were generated by VB2005? I've tried to cut and paste the region
into a partial class, and it seems to build and run ok, but the designer
displays a blank form.
Thanks
R, Linder
 
R

Ray Cassick

2005 already uses partial classes for its designer. If you unhide all files
you should see them there.
 
G

Guest

Thanks for the response Ray, I do see the Windows generated code in the
partial class when I create a form in VS2005, but the forms that were created
in 2003 still clog the class with Windows generated code. I wanted to move
that Windows generated code out of the class and into a partial class. I
guess I could just leave it and move MY code into a partial class.

R. Linder
 
R

Ray Cassick

Oh, I get it...

Hmmm.

Seems to me that as long as you built a new file and named it correctly and
set it up properly then you could do the same thing.
 

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