Marc,
Open the form file (.frm) in notepad and make sure that these attributes
are at the bottom of the file:
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
If they are not there the Upgrade tool things that these are VB5 forms and
fails to upgrade them.
--
John Hart, Microsoft VB Team
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
[quoted text, click to view] > Sender: Standardbenutzer@TU-K3YVE0N56PSA
> Subject: Re: VP6 forms saved as VB5. - .NET Upgrade not possible
> References: <OmpAuXamDHA.2200@TK2MSFTNGP12.phx.gbl>
> X-Face:
vJn^g[Lkg9YfJ,Oj#{Y[')WBo<1kS#Rc3Vb!D;jf$;OZ%<"'z+DX"K/m)h\Gi;e-AYsc%'CmL~Ix
@YEq$}A>^]KbF1.Z|=/'*CcB[f+8(m&vP.u4+P.q$n]?[s>nnFu/8EuC?h[c\#wR{ok_um~57to=
P=1"{qO1e%A2~nS?<[o`jn?C/-}7Mbz~L)WI=5VL!*xU#^d
[quoted text, click to view] > From: hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP])
> Date: 24 Oct 2003 20:22:07 +0200
> Lines: 17
> User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp (Windows))
Hamster/2.0.0.1
> MIME-Version: 1.0
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: 8bit
> Message-ID: <ujKpGvlmDHA.2272@tk2msftngp13.phx.gbl>
> Newsgroups: microsoft.public.dotnet.languages.vb.upgrade
> NNTP-Posting-Host: n600p028.adsl.highway.telekom.at 62.47.18.252
> Path:
cpmsftngxa06.phx.gbl!cpmsftngxa09.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.
phx.gbl
[quoted text, click to view] > Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.languages.vb.upgrade:5664
> X-Tomcat-NG: microsoft.public.dotnet.languages.vb.upgrade
>
> * "MarcT" <mtrudel337@hotmail.com> scripsit:
> > I am trying to upgrade a VP6 project to .NET.
> > When I upgrade to .NET, the forms as not upgraded.
> > .NET says that it is a VB5 form. When I open the FRM file with notepad
I see
> > VB5 in the header.
> >
> > But I never had VB5 on my computer.
> > I start a new VB6 project from scrach and it is still save the form as
VB5.
> >
> > .NET upgrade continue to tell me that it is a VB5 form. !!!!!
>
> My VB6 saves forms in VB5 format too because the format hasn't changed.
> Nevertheless, the upgrade wizard works with these files.
>
> --
> Herfried K. Wagner
> MVP · VB Classic, VB.NET
> <
http://www.mvps.org/dotnet> >