We help IT Professionals succeed at work.

Visual Basic 6.0 compatiblity

Medium Priority
275 Views
Last Modified: 2013-12-17
We purchased a product that was written in VB 6.0 and I was wondering if i could take that project and import it into the latest version of Visual Studio 2008?  Is this possible and what problems could i run into?  Or should i just purchase VB 6.0?
Comment
Watch Question

Commented:
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim HexArray() As String = {"0x40", "0x08", "0x04", "0x02"}
        Dim IntResult As Integer
        For i As Integer = 0 To HexArray.GetUpperBound(0)
            IntResult += Integer.Parse(HexArray(i).Substring(2), Globalization.NumberStyles.HexNumber)
        Next
        MsgBox(String.Format("Result is {0}", IntResult))

    End Sub
End Class

Commented:
Sorry, I've posted to the wrong window.
Commented:
>I was wondering if i could take that project and import it into the latest version of Visual Studio 2008?  Is this possible and what problems could i run into?  Or should i just purchase VB 6.0?

For the most part, any serious project in VB6 will require a rewrite to bring it into VB.NET.  There is a wizard you can use to import vb6 code, but there are many items that the wizard will not do well.   To do it well, you will need to rewrite.

VB.NET contains significant advantages to VB6, but if you have everything you need in the existing project, you might consider keeping it in VB6.  
Justin AlcortaEnterprise Systems Analyst

Author

Commented:
Can VB6 run on Vista?
Éric MoreauSenior .Net Consultant
CERTIFIED EXPERT
Top Expert 2016

Commented:
>>Can VB6 run on Vista?

with some problems (like older version of Crystal Reports). It is recommended that you run VB6 into a virtual PC session running XP.
it is recommanded you buy Visual Studio 2008

As in near future vb6 programmer will be very difficult to find. and many of the vb6 application does not work in vista and need introp.

With Regards
Rajendra Dewani ( Team Leader)

Explore More ContentExplore courses, solutions, and other research materials related to this topic.