Results 1 to 5 of 5

Thread: Code differences from VB6 to .NET

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2003
    Posts
    1,005

    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

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Code differences from VB6 to .NET

    There is a section about this in MSDN, do a search.
    I don't live here any more.

  3. #3
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    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.
    I don't live here any more.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2003
    Posts
    1,005

    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.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2003
    Posts
    1,005

    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width