Code differences from VB6 to .NET
Is there a compiled list of the code changes from vb6 to .NET?
Example...
VB6 ...................NET
Msgbox...............MessageBox
App.Path.............Application.StartPath
Unload Me .......... Me.Close
etc....
Is there a list anywhere like that?
Plus, any code that have been dropped from the .NET framework.
P.S. I know you can still use VB6 code using the VB namespace. But I want to use only framework classes and code syntx. I want to convert all non-framework code of vb6 to .NET framework.
Thanks
Re: Code differences from VB6 to .NET
There is a section about this in MSDN, do a search.
Re: Code differences from VB6 to .NET
Quote:
Originally Posted by epixelman
P.S. I know you can still use VB6 code using the VB namespace. But I want to use only framework classes and code syntx. I want to convert all non-framework code of vb6 to .NET framework.
Thanks
Good for you. Its good to see someone else wants to do things properly too! :)
If you want to know if there is any legacy code in your app then do this:
Project Menu...Project properties...imports...
select Visualbasic and click Remove.
This will cause the compiler to flag up all the VB6 legacy stuff.
Also, use Option Strict On at all times.
Re: Code differences from VB6 to .NET
Thanks,
I am not using Visual Studio... I'm using SharpDevelop (a free IDE)
It doesn't have that option, but it does flag them as errors as "undeclared command"
Thus my hunt for the framework equivelent begins.
Re: Code differences from VB6 to .NET
I can't find any page on MSDN that list the syntx changes.
Anyone know of a site that has this info?