Questions tagged [vb6-migration]

This tag is for questions about migrating existing applications, or legacy code, from Visual Basic 6 to a more modern platform. Unfortunately migration is usually a tricky task. The most common target platforms are VB.NET and C#.

Here are some typical motives for migration

  • To use a more modern programming language for enhancements.
    • This will give some increase in productivity.
    • This also keeps the developers happy, which is a valid business benefit in itself. There are bigger gains in productivity from attracting and retaining good developers than anything else.
  • To use a fully supported programming stack.
    • Although the VB6 runtime is still fully supported by Microsoft as part of Windows, many people worry that support will be dropped one day. The VB6 IDE is no longer supported.

Frequently asked questions

669 questions
0
votes
1 answer

Calling of Comwrapped Net code from the VB6 IDE fails with 'ActiveX Component can't create object' in Win7 but not in WinXP

We are employing RegFree Com for over a year now succesfully to create hybrid VB6/VB.Net programs. As we now want to develop some components in Net 4.5 we have to start using the VB6 IDE from Win7, where we first developed from WinXP. The problem…
Dabblernl
  • 15,831
  • 18
  • 96
  • 148
0
votes
1 answer

How to drag a control on to a frame in vb5 form. (I am using windows XP)

In my Visual Basic 5.0 form windows xp. I can not drag an lable control onto a frame, thereby making the option specific to that frame. I can double click the label control and then move the option control over to the frame, but then the frame…
niru dyogi
  • 619
  • 5
  • 14
  • 37
0
votes
1 answer

VB.Net VB6.Format() Issues after converting

Having some issues after running a tool to convert the VB6.Format() to VS 2008 code. We had this statement: VB6.Format(InVariable, szFormatMask)) That was converted to this: InVariable.ToString(szFormatMask) The issue being that now, when we call…
user2178477
  • 47
  • 2
  • 11
0
votes
1 answer

VB6 code reader

I have some VB6 files which I want to read and explore (to ultimately convert into .NET). I do not need to execute or write code. I am looking for a piece of software that will help me read and explore these files. Notepad++ would be fine if I could…
Ronnie
  • 1,059
  • 14
  • 27
0
votes
1 answer

RecordSet and Function from vb6 to vb.net

I was wonder how to convert this line of code to vb.net. I changed the dataset to recordset and it is indeed a function. When i convert It gave me this error. The dataset is filled with values from Database Its just that this "!" is the main error…
shaik ibrahim
  • 187
  • 6
  • 11
  • 31
0
votes
1 answer

Subsonic and the VB.net 2005 interop toolkit

I have an application I am converting over from vb6 to vb.net 2.0/3.5. Using Subsonic 2.2 and the vb.net Interop Toolkit 2005. Cannot seem to get the .net form using subsonic to work inside the interop environment. It keeps saying it cannot find the…
wja
  • 1
0
votes
3 answers

VB6 Legacy Code can't "Call Shell"

I am working on some legacy VB6 code and I am having my program break with this message: and it then highlights this code: I know that the specified locations exist per these screenshots: I am running this Visual Studio 6.0 on a 64-bit Windows 7…
jth41
  • 3,808
  • 9
  • 59
  • 109
0
votes
1 answer

Matchwithlist in visual studio

Over here i have an example of implementing matchwithlist in vb.net how ever is there any other ways to do this. In vb the code was simple combo1.matchwithlist The got was taken from http://support.microsoft.com/kb/266265/en-us Private Sub…
shaik ibrahim
  • 187
  • 6
  • 11
  • 31
0
votes
2 answers

Marshalling and converting VB6 code to .NET

I am having trouble converting some code from VB6 to VB.NET (I don't have as much experience with .NET). When I run the 'Select function (from the WS2_32.dll library) in .NET, using the same parameters as the VB6 program, it returns a result of -1…
Justin
  • 3
  • 1
  • 2
0
votes
1 answer

Unable to find dll of vb6?

I have a vb6 project when i try to upgrade it in .net 4.0, it shows some errors in references(i know that's obvious), they are like The referenced component 'AxMSCommLib' could not be found. The referenced component 'AxOWC' could not be found. …
Mogli
  • 1,972
  • 11
  • 34
  • 67
0
votes
1 answer

How can we achive the replica of databases for SQL SERVER?

I have been working in VB6 to VB.NET migration project.In VB6 project they have individual databases(access db .mdb) for every user now we made that to Centralized database SQL SERVER.In VB6 the individual db is a replica DB and has a Master-db…
0
votes
1 answer

How can we migrate the VB6 code to Vb.NET?

I have a problem while converting the VB6 code to vb.net .Can any one help me to convert the following lines of code? bin_str = StrConv(imgA, vbUnicode) bin_str -- > String imgA -- > Variant type
Hemant Kumar
  • 4,593
  • 9
  • 56
  • 95
0
votes
1 answer

Porting Crystal Report from VB6 to VB.NET

I have done a tonne of work in porting quite a large VB6 project over to .NET but have hit a snag on the crystal reports. I've converted the dsr files to rpt. The next stage is getting it into the code The VB6 way was to use the following Dim report…
Nodoid
  • 1,449
  • 3
  • 24
  • 42
0
votes
0 answers

Why does Artinsoft stops in % 39 even if I change the project or resulting format?

I am trying to convert a Visual Basic 6 program to 2010 C# using Artinsoft. It always stops after %100 preprocessing percentage and %39 upgrade percentage. I tried different outputs other than 2010 C# like 2005 Basic, 2005 C# but this %39 didn't…
Ferda-Ozdemir-Sonmez
  • 674
  • 2
  • 13
  • 38
0
votes
1 answer

What to replace in Crystal Report Programmatically?

I have a line of code to set the Report.PrintDate in VB6.How can we replace this line for CrystalDecisions.CrystalReports.Engine.ReportDocument ? In VB6 we have it is the inbuilt property for CRAXDRT.Report. So can any once help me regarding this ?
Hemant Kumar
  • 4,593
  • 9
  • 56
  • 95