Home All Groups Group Topic Archive Search About

New VS.2005 File format for windows-forms ( spliited into form1.designer.vb and form1.vb )

Author
2 Aug 2006 11:09 AM
Peter Stojkovic
I have old Windows from VS.2003 wit a lot of controls in the forms
( Standard und user-Controls )

I have now converted my Application to VS.2005
When I create now a new form the information is stored in two file:
form1.designer.vb
form1.vb

Is it possible to convert the old forms to the new VS.2005 format ?
The automatic conersion has not splitted the old formold1.vb into two files.
May be because of the lot of controls und user-controls on the form.


Thanks

Author
2 Aug 2006 12:27 PM
Herfried K. Wagner [MVP]
"Peter Stojkovic" <no_spam@gmx.net> schrieb:
>I have old Windows from VS.2003 wit a lot of controls in the forms
> ( Standard und user-Controls )
>
> I have now converted my Application to VS.2005
> When I create now a new form the information is stored in two file:
> form1.designer.vb
> form1.vb
>
> Is it possible to convert the old forms to the new VS.2005 format ?
> The automatic conersion has not splitted the old formold1.vb into two
> files.
> May be because of the lot of controls und user-controls on the form.

The IDE unfortunately doesn't have built-in support for converting existing
forms to the new form model using partial classes.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
2 Aug 2006 1:34 PM
Jim Wooley
> I have now converted my Application to VS.2005
> When I create now a new form the information is stored in two file:
> form1.designer.vb
> form1.vb
> Is it possible to convert the old forms to the new VS.2005 format ?
> The automatic conersion has not splitted the old formold1.vb into two
> files.
> May be because of the lot of controls und user-controls on the form.
> Thanks


You can manually go through the trouble of adding the files. Making both
sides partial classes and moving the "don't touch this" section of 2003 style
code to the 2005 .desiginer file. I'm not sure it is worth the trouble. As
far as I know, there isn't any automated method to do this. Perhaps someone
could write an add-in if they don't have anything better to do.

Jim Wooley
http://devauthority.com/blogs/jwooley/default.aspx