vb6-migration

How do you migrate a large app from VB6 to VB .net ?

My company makes a monolithic piece of software that our customers use to run their car dealerships. The original app was written in VB6, and it has grown substantially over the last few years. Until now, there hasn't really been a business case for switching to the .net framework. Sure, it's newer, considerably better at certain things,...

What's the simplest .NET equivalent of a VB6 control array?

Maybe I just don't know .NET well enough yet, but I have yet to see a satisfactory way to implement this simple VB6 code easily in .NET (assume this code is on a form with N CommandButtons in array Command1() and N TextBoxes in array Text1()): Private Sub Command1_Click(Index As Integer) Text1(Index).Text = Timer End Sub I know i...

How can I convert VB6 code to C#?

Does anyone know a way to convert from VB6 code to C#? Is there a tool that can do this for me? ...

Replace control arrays before migrating from vb6

With a view to avoiding the construction of further barriers to migration whilst enhancing an existing vb6 program. Is there a way to achieve the same functionality as control arrays in vb6 without using them? ...

Any tools to aid porting vb6 to vb.net ?

I just inherited control of a largish VB6 codebase. It doesnt have much in the way of active X other than the crystal reports engine and MS access work it does. I want to move it to .net before the tool set and skill sets dry up completely (if they havent already). Can anyone recommend any good tools to convert/migrate vb6 code to vb.ne...

What is "DefInstance" and should I remove it from a WinForms app?

I am working on a VB.NET WinForms app that was "upgraded" by Visual Studio (originally 1.0 or 1.1) from VB6 code (which was itself upgraded from VB5). Except for the few new forms I've created since taking over maintenance of this app, all of the forms in the application have a method called DefInstance which allows you to grab an in-mem...

E_NOINTERFACE after upgrade of VB6

After upgrading a VB 6 based application exposing a COM interface, COM Clients (in .NET) built against the previous version receive E_NOINTERFACE errors. The error message (translated) Cannot convert COM-object of type AProduct.AClass to interface of type AProduct._AClass ... What went wrong here? What is the cause of the E_NOINTERFA...

Upgrading a large VB6 app to .NET. Opinions on VB Migration Partner

I have a really large VB6 code base with a ton of 3rd party controls. Want to move it to .NET. Rewriting it is out of question - the client sees no value in spending money to get the same thing. Moving to .NET with the built-in upgrade wizard is basically a non-starter. Has anyone tried the VB Migration Partner from http://www.vbmigr...

How do I convert VB5 project to a c# project

I have a VB5 (non .net) project that I would like to upgrade to a c# project. Has anyone have any suggestions on methods or free tools that are avalible to help me with this. Thanks Brad ...

Should we select VB.NET or C# when upgrading our legacy apps?

At the company where I work, we have a number of legacy apps written in Visual Basic 6.0. Without casting aspersions on the developers who wrote them, suffice it to say we have decided to rewrite the applications from scratch due to several compelling factors: 1.) Lack of documentation. 2.) Lack of exception handling. 3.) Lack of logg...

Migrate VB6 Data Report to Crystal Report within VS.NET

I am trying to convert a VB6 Data Report (.dsr file) to a Crystal Report through the migration process within Visual Studio. I have read articles that reference adding a Data Report to a Project from Visual Studio 2005/2008 and that it will convert the Data Report to a Crystal Report, but I have not been successful in doing so. Does the ...

How do I unload all open forms in VB.NET?

In the middle of converting VB6 code to VB.NET, I need to replace the following code that intends to close all open forms remaining in the application. 'close all sub forms For i = My.Application.OpenForms.Count - 1 To 1 Step -1 'UPGRADE_ISSUE: Unload Forms() was not upgraded. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local...

Migrating from VB6 to .NET, is there an equivlaent function for TreeNode.FirstSibling?

The desktop application I'm migrating makes heavy use of a treeview control, and many calls to TreeNode.FirstSibling, e.g. 'UPGRADE_ISSUE: MSComctlLib.Node property tvTreeView.SelectedItem.FirstSibling was not upgraded. If tvTreeView.SelectedNode.FirstSibling.Index = 1 Then ... End If Is there an equivalent function to use? ...

Moving large vb6 app to web or winforms. You decide!

I'm working on porting a large vb6 application to .NET. The current app is a desktop app that communicates with a set of local access databases. There are about 200 forms in the application and about 100 tables. The screens are mostly complex. Most show master-detail relationships, lots of rows in embedded spreadsheet and dynamically gen...

PDF file in VB.NET (upgrade problem from VB 6)

I have upgraded my project from vb6 to VB.NET. The project is used to generate pdf files.. while upgrading I'm getting following problem. Code: 'UPGRADE_ISSUE: Constant vbUnicode was not upgraded. Click for more: 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup2070"' 'taptisColor = IIf(mvarEncodeASCII85, ToA...

Best Development tools for Upgrading from VB6.0

Im planning to upgrade a large vb6 application to .net. The project uses many third party components eg VSFlexGrid as well as crystal reports. It also uses old VB6 dlls whose source code is unavailable. My questions are Should I convert the source to C# or is VB.net robust enough? What do I do about third party components that are not ...

Best Strategy for moving from VB6 to .NET

My company has tons of legacy applications that are written in VB6. We are in transitions from moving VB6 applications to .NET (3.5 specifically). What would be the best strategy for moving form VB6 to .NET? NOTE: Below update should go to "Project Management" and has nothing to do with the main question. [UPDATE]: Thank you for...

Conversion tool comparisons for visual basic 6.0

Has anyone here used either of the following (or any other tool) to convert your vb6 code to a .net language? Artinsoft's upgrade companion (converts to c# and vb.net) vbmigration partner (converts to vb.net) How effective were they and what size project did you convert? How much work was left to do afterwards? How happy are you ...

What is the best way to approach creating a corporate .Net Namespace framework from scratch?

We are migrating our applications to VB.Net 2008 from Classic VB and I need to create a base namespace and business layer. My method of approach is going to be to visit our top BA and identify the common areas of our (Fixed Income) company and try to form a decent inheritence model with as much of the code in generics as possible. What'...

VB6 migrating to .Net with Visual Studio 2010

Has anyone migrated a VB6 project to .Net with Visual Studio 2010? I have tested the migration in VS2005, but the resulting .Net code was so messed up, that we decided not to migrate to .Net. So has the VS2010 migration wizard been improved over the wizard in VS2005 or VS2008? ...