Moving Win Generated Code to Partial Class

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
2005 already uses partial classes for its designer. If you unhide all files
you should see them there.
 
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
 
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.
 
Back
Top