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
-3
votes
1 answer

VB6 function to C#

Public function MaxID(ColName as String, Table as String) as long ' Here i make a local Variable Dim recset as ADOB.Recordset set recset =Conec.Execute("Select max(" & Colname & ")+1 as maxno from " & table end if Set recset= Nothing End Function
-3
votes
1 answer

Difference between VB6.0, VB2010, VB.NET

I have studied VB 6.0 but have hardly any knowledge of .NET. Can someone please tell me the difference between the three versions namely VB6.0, VB 2010 express and VB.NET?
user1414935
  • 9
  • 1
  • 3
  • 6
-4
votes
1 answer

VB6 to VB.NET conversion (Syntax : Print to StreamWriter/Reader)?

The following code is a part of VB6 application & I'm currently converting to VB.NET Windows Service. Line starts with Open gives me an error(I assume the 'Open' syntax does not support with VB.NET). I tried converting the code utilizing all the…
EDMT
  • 7
  • 3
-4
votes
1 answer

Will you please help me in my migration to VB.NET from VB 6.0?

I just read a certain article about the control arrays of VB6 not present in VB.NET and rather, became a "collection" or something.... (http://visualbasic.about.com/od/usingvbnet/l/bldykctrlarraya.htm) Now, I'm planning to learn VB.NET and accept it…
-4
votes
1 answer

C# equivalent to VB 6.0 code

Option Explicit Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long Private Declare Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess As Long, lpExitCode As Long) As Long Function TimerCreate() As…
apratik
  • 141
  • 2
  • 11
-4
votes
1 answer

How to convert this line of code into Vb.NET?

I have been working for VB6.0 and trying to convert that code into VB.NET.Alomost I tried and succeed but when I am confused to convert this lines of code. If Not ds.EOF Then ds.MoveFirst() ds.MoveLast() End If Can Any one help me to…
Hemant Kumar
  • 4,593
  • 9
  • 56
  • 95
-5
votes
1 answer

Migrating vb6 to .net

We are about to start a new project using an existing SQL DB, but this project is going to need to reuse a number of core features from an existing vb6 app that uses the same database. Two approaches I have in mind: Approach 1: Have the existing vb6…
Brandon Moore
  • 8,590
  • 15
  • 65
  • 120
-5
votes
1 answer

a project with an output type of class library cannot be started directly VB.NET

currently, my boss assign a task which convert VB to VB.NET. one of my program has occur an error and it. did anyone come across before? how to solve it and why this error occur? i know my information is not enough, plz tell me what information u…
user1506228
  • 45
  • 4
  • 10
-7
votes
1 answer

Is there a VB.NET equivalent of the UpDown VB6 control?

Is there a VB.NET equivalent of the UpDown VB6 control? I'm remaking a VB6 user control as a .net winform.
Mike Canner
  • 119
  • 2
  • 9
1 2 3
44
45