vb6-migration

Utility to Convert Legacy VB6 Function Calls to .NET

I am looking for a utility/tool to convert calls to legacy VB6 functions to the .NET equivalent. For example, it would convert this... FormatCurrency(Cart.TotalAmount) Len(Str) UCase(Str) UBound(PaymentsArray) To this... Cart.TotalAmount.ToString("c") Str.Length Str.ToUpper() PaymentsArray.Length - 1 Does anybody know of one, or a...

Convert vba to vb6 and create a .dll - how to - hints, tipps and risks

Hi, I should convert a huge load of code which was written in VBA (Excel) to VB6. But I really do not know what I have to take care of or where to begin. Therefore it would be great to get some hints here from the VB6 experts. I installed already MS Visual Studio and played a bit around. But I'm not a VB6 expert and do not really know ...

How can I get the printer HDC

I have a COM component written in C++ that has a Print function. This print function takes the Printer hDC as a parameter that includes all settings to use for the print. Previously, this was called from VB6 code, and Printer.hdc would work here after setting everything on the Printer object. The code was converted from VB6 to VB.NET, a...

How to migrate ugly and undocumented VB6 Code to .NET

I know that there are already Questions about VB6 migration, but the code base of my project brings some new questions here. I have to say the Code quality, structure and architecture is just a nightmare. There are 2 Big Projects: Nr.1 with 40 Forms, 40 Modules and a few class files, this EXE is kind of a "base system". Nr.2 with 80 For...

VB6 Format function: analog in .NET

There is String.Format function that is referred to in the documentation as the analog for Format function from VB6. There's also Format function from VisualBasic namespace that is provided for compatibility and basically has same powers as String.Format. Indeed, those two format dates and numbers. But VB6's function was also able to f...

How to get image from vb6 MSFlexGrid OLEDragDrop event

I have a VB project that is converted from VB6 to VB.NET. In this, I have a MSFlexGrid that is used as an interop compatibiliy. That means it is somewhat converted to .NET, but internally, many of the mechanisms are still from VB6/COM. I need to drag an image from a PictureBox (which is .NET) and drop it on the flexgrid. This is what ...

Getting my hands on some old Protoview VB6 controls...

Hi all, I have inherited a project from a client, who believes he has all the source code, but unfortunately this particular VB6 application used a bunch of custom controls that the original programmer will not give up (he may in fact have purchased the licenses himself, so he may be right in not turning them over, on the other hand sinc...

Upgrade VB6 application to Visual Basic 2008

Hi, I've got a VB6 application, and i want to develop it with Visual Studio 2008. The problem i've got is the upgrade wizard. By starting the wizard it's working ok. But when the parsing process is running it take 100% of the CPU and keeps on the same status: Parsing form. It's running for several days. How can i migrate the applicat...

Why am I having problems passing argument to or from a FORTRAN DLL from VB.NET

I have a DLL written in fortran that I know works because I am getting it from a working software package that we use daily. I am trying to call it from anything but am having problems i believe with passing the correctly formatted arguments in and out of it, so i decided to try and access it from a VB program. I chose VB because I hav...

What's the fastest way to convert an existing Vb6.0 win-based application into a c# win-based?

What's the fastest way to convert an existing Vb6.0 win-based application into a c# win-based? ...

How to prevent your code from becoming obsolete?

Some programmers here have been developing a project in VB6, and they say they now need to upgrade to vb.net if they want their apps to run on newer/future systems as vb6 is going to be history soon. So there is this huge application they have been working on that they are going to have to rebuild from scratch (they tried to use the upg...

Can/how do you host a full VB6 Form in a C# WPF app?

I am currently exploring the option of porting some older VB6 application to WPF with C#. The plan, in phase one, is to port several key forms and not all the application. The theoretical goal is to open the VB6 form in a container of some sort within WPF via an ActiveX dll. Is this even possible? I've tried looking at the Interop and c...

Using a VB6 Class in C#

Is it possible to use a VB6 class in C#? ...

Performance of passing data between .Net and COM assemblies

I am in the process of migrating a legacy VB6 app to .Net, however since it is a high-profile business critical application, it is being done piece by piece. In the interest of improving performance, there is one method which gets hit a lot,thousands of times during the application life, and I was wanting to rewrite it in .Net (C#) to s...

Marshalling Date type

I'm trying to marshal a VB6 structure but I don't know how to marshal the Date type ex: DateSaved As Date and the following array of strings: FASTNESSNAME(1 To 6) As String * 16 Thanks in advance for the help. ...

Is there a VB 6 to VB.net conversion guide?

While I used to VB 6 like the back of my hand, it has been a very long time I have never attempted to convert a large project. Are their any guides to help me along the process? ...

Porting VB6 app to VB.Net: Can anyone ballpark how much effort this is?

In 2002 I did a pretty large VB6 app for a client. It used a lot of UserControls and a 3rd party menu control (for putting icons next to menu names). It had dynamically "splittable" panels, TreeViews with multi-state checkboxes, etc. A very rich UI. My total time on the project was about 500 hours, which the client graciously let me spre...

Strategy for converting a VB6 app to .NET

Would it be a good idea to start converting forms into .NET one at a time which you would then invoke from the VB6 app via COM-interop. This way, by the end of the process you would just convert the 'shell' of the VB6 application into a new .NET app, and all your forms are ready to go in .NET. Is there a better strategy? ...

We have migrated VB6 code to C# in .net.

The code was migrated using a third party tool. what ever the tool couldnt do, was done by the .net developers, so that all compile issues were fixed. My question is, for such migration activities, do we not bother running unit tests for the functions. Secondly, Could anyone suggest if we should use some tool in VSTS 10 to create a UML...

i need tips and advices while migrating code from vb6 to .net with visual studio 2010

i want to migrate one of the application from vb6 to .net with visual studio 2010.At present the application is windows based application. i want to make web application. i guess i have to rewrite the code in .net. could you please advice me while i rewrite the code in .net. ...