
VB6 to .NET migration: a phased plan for plant-floor apps
Plan your VB6 to .NET migration in phases: inventory what the app touches, move data access first, then the UI, and run old and new side by side.
Home » VB6 to .NET migration: a phased plan for plant-floor apps
A vb6 to.net migration works best in phases: inventory, freeze, data access, UI, then a parallel run. For a manufacturing shop-floor app, that beats both a big-bang rewrite and a converter-only approach.
The usual story is the same everywhere. The plant runs on a Visual Basic 6.0 app that prints labels, reads scales and posts to the ERP, and one person really understands it. Nobody wants to touch it, so the project slips for another year.
This guide is for the IT manager or CIO who owns that app. It covers vb6 to.net migration for manufacturing plants, with the hardware and ERP steps most guides skip.
Who really understands your VB6 shop-floor app?
Walk through your inventory of ERP tables, printers, scales and PLC exports with our team and sketch a first phase that keeps the line running.
Book a 30-min call →Quick Answer A vb6 to.net migration works best in phases: inventory what the app touches, freeze changes, move data access first, rebuild the user interface, then run the old and new versions side by side until the outputs match. For plant-floor apps, this keeps production running and avoids reproducing years of undocumented behavior in one big-bang rewrite.
Legacy VB6 shop floor software survives because it works. It prints the right label, reads the right weight and posts to the ERP at 5 a.m. on a Monday. The risk isn’t only the runtime. It’s the people, the components and the hardware drivers around it.
The QServices Framework Phased VB6 Migration = Inventory → Freeze → Data access → UI → Side by side
The order matters because each phase shrinks the unknowns for the next one. You can’t safely move data access until you know what touches the data, and you can’t compare old and new until the new one reads the same data.
Partly. Microsoft states that the VB6 runtime is supported on Windows 10 and Windows 11 for the lifetime of the OS, as 32-bit code under WOW64. The VB6 development environment has been unsupported since April 8, 2008. Support covers only serious regressions and critical security issues.
That is the wording in Microsoft’s Visual Basic 6.0 support policy. Here are the VB6 support facts as of December 2026:
So the honest answer on vb6 end of support is that the runtime isn’t your deadline. Your deadline is the day a driver, a control or a developer disappears. Add 64-bit driver gaps, security patching and audit findings, and the case builds quickly.
Key Insight A VB6 app rarely fails because the runtime stops. It fails because the last person who can rebuild it, or the last vendor who ships its OCX, is no longer available.
Migrate in phases so the app keeps running. Inventory everything it touches, freeze changes, move data access first, then the user interface, and run the VB6 and.NET versions side by side until outputs match. Reach functional equivalence before adding features. A phased move keeps production running throughout.
Many plans still say vb6 to.net 8. That version left support on 10 November 2026, so target the current LTS,.NET 10, per the .NET support policy. Everything below applies to either.
| Phase | What happens | Exit check | Who signs off |
|---|---|---|---|
| Inventory | Map forms, components, devices, tables, owners | Every interface has an owner and a test idea | Plant IT lead |
| Freeze | Lock changes, build characterization tests | Tests pass on the live VB6 build | Operations manager |
| Data access | Move reads and writes to supported APIs | Same results as old queries on real data | IT manager |
| UI | Rebuild screens in.NET | Operators complete a shift’s tasks | Line supervisor |
| Side by side | Run both, compare outputs | Zero unexplained differences for the agreed period | CIO and plant manager |
Here’s why vb6 rewrites fail and phased migrations work: a rewrite must reproduce years of undocumented behavior before anyone can switch. Every odd rounding rule, label quirk and shift-change workaround lives in the old code. Miss one and the line stops.
A phased move ships working pieces and keeps a fallback. This is the Strangler Fig pattern: the old system keeps running while the new one takes over gradually. Mobilize.Net’s guidance makes the same point and says to reach functional equivalence first, then re-architect.
| Option | Risk and downtime | Cost shape and when it fits |
|---|---|---|
| Do nothing | Rising risk, no planned downtime | Cheap today; costly on the day a driver or developer vanishes |
| Keep and wrap (COM interop) | Low; old code stays | Fits a stable core with new features added in.NET |
| Convert with a tool | Medium; output needs review | Fits small, clean apps with little hardware code |
| Rewrite by hand | High; cutover is one big event | Fits poor code or tiny apps |
| Phased move | Lowest for production; needs two systems running | Worse on total effort: you maintain two apps for months and need skilled staff |
| Replace with ERP features | Medium; process change for operators | Fits when the app only duplicates what the ERP now does |
Record every form, module, COM or ActiveX component, OCX and DLL, plus each database connection and ERP table touched. Add the physical side: label printers, scales on serial or Ethernet, and PLC export files. Name who uses each function and who last changed it.
Budget two to four weeks for this phase on a mid-sized app. Add a dead-code sweep, a business-rule extraction pass with the operators, and a risk register with an owner per risk.
The shop-floor interface inventory is the table most plans skip. Each row needs a replacement and a test.
| Interface | How it’s replaced | How it’s tested |
|---|---|---|
| ERP tables | Supported APIs instead of direct SQL | Same results on a copy of live data |
| Label printer (ZPL or SBPL) | Raw ZPL or SBPL over TCP, or the vendor SDK | Print and compare against scanned originals |
| Scale (RS-232 or Ethernet) | System.IO.Ports or a TCP client |
Known test weights, raw bytes logged |
| PLC export or OPC | File watcher or an OPC UA client | Replay a recorded shift |
| Barcode scanner | Keyboard wedge needs no code | Scan a printed sample set |
Zebra and Sato printers, Mettler Toledo scales and Allen-Bradley or Siemens PLCs all show up here. Many older PLC links use OPC DA over COM, so check early whether a 64-bit or OPC UA path exists.
Capture behavior first, not just code. Sit with that person and the operators, and record what the app does for each task. Then freeze changes and write characterization tests that lock in today’s outputs.
This is how a phased plan reduces dependence on one person. The knowledge moves into tests and a risk register before anyone starts converting. Mobilize.Net’s guidance puts testing at at least 35% of effort, ideally about 50% (a vendor view, but it matches our experience).
Move data access first. Replace direct SQL reads and writes with the ERP’s supported interface, so upgrades don’t break the app. Keep the VB6 screens on top of the new data layer, test it against the old results, then rebuild the UI.
VB6 data access migration from ADO to Entity Framework isn’t a find-and-replace. Microsoft’s old upgrade tooling wrapped the ADO COM libraries instead of producing ADO.NET code. DAO and RDO have no direct port, so move them to ADO first.
A workable path: put the queries behind one data-service class, then swap its internals to Entity Framework or Dapper. Here is the pattern for an ERP read:
rs.Open "SELECT Quantity FROM [Item Ledger Entry] WHERE [Item No_]='A100'", cn
var stock = await http.GetFromJsonAsync<ItemList>("items?$filter=number eq 'A100'");
The error handling changes too. On Error GoTo becomes try/catch, and each handler should catch a specific exception and log it.
Direct table writes skip the ERP’s business logic. They break on upgrade because table layouts change between versions. Business Central supports REST API v2.0 (recommended for new work), SOAP and OData v4 web services, as the Business Central API reference documents. Writes need the company name in the call.
Key Insight If your VB6 app writes straight into ERP tables, every ERP upgrade is a regression test you didn’t plan. Supported APIs turn that into a contract.
Map each flow once: production orders, consumption and output posting, inventory moves and quality results. Our Business Central API guide for manufacturers covers the endpoint choices. For Dynamics GP, use eConnect or web services. For NAV, use its web services. For Epicor, SYSPRO and Sage, use each vendor’s supported integration layer.
Standards & References
- Visual Basic 6.0 support policy: what Microsoft supports in VB6, as of today
- .NET support policy: release lifecycles and end-of-support dates for.NET
- Business Central API v2.0 reference: supported endpoints for reading and writing ERP data
For shop-floor devices, usually a Windows desktop client on current LTS.NET. Serial and USB hardware is easier to reach from Windows Forms or WPF than from a browser. A web front end fits screens that don’t touch devices.
VB.NET is the closest syntax and the shortest path. C# has the larger library base and hiring pool, so a VB6 to C# conversion makes sense when the team will maintain it for a decade. Blazor suits office screens, but plant devices pull you back to Windows Forms or WPF.
Whichever you pick, migrate vb6 to.net with the same behavior first. These are the changes that bite:
.Text and .Value explicitly.Object, so type everything you can.Integer is Short, so Long becomes Integer.No tool finishes the job. Microsoft no longer ships a migration wizard and points to partners. Third-party converters such as Mobilize.Net VBUC produce a baseline.NET codebase, but ActiveX controls, graphics, file IO and serial code usually need manual work. Test any tool on one real module before you commit.
AI-assisted conversion helps with boilerplate and translation. It can’t tell you which odd behavior the plant depends on. That is why the characterization tests come first.
VB6 label printer and scale integration in.NET starts with System.IO.Ports.SerialPort, the replacement for the MSComm control. Test with raw bytes, because text encoding can differ from what MSComm returned.
using var port = new SerialPort("COM3", 9600, Parity.None, 8, StopBits.One);
port.Open(); port.WriteLine("W");
var reply = port.ReadLine();
Many ZPL printers also accept raw ZPL over TCP, which is lighter than a full vendor SDK. Design for a flaky plant network: queue labels locally and retry. If a 64-bit driver doesn’t exist, virtualizing the 32-bit app is a stopgap, not a plan.
Not sure what your VB6 app touches?
The inventory is where most migrations stall. Talk it through with us before you freeze changes and commit to a phase order.
Book a 30-min call →Running VB6 and.NET apps side by side means both versions process the same inputs while only the old one is authoritative. Compare outputs over a defined period, then switch one line at a time. Microsoft’s Interop Forms Toolkit and COM interop let you add.NET one form at a time.
The interop route has a catch. On modern.NET you need source-generated COM interop or ComWrappers, because the Type Library Exporter isn’t supported there. Test one form before you rely on it.
Real-World Scenario A typical case we see: a plant IT manager runs a 60-form VB6 app with four serial devices. In the naive plan, the team rebuilds all screens first and discovers during cutover that the scale parser rounds weights the way the old code did. Labels print 0.01 kg off and the line holds for two hours. In the phased plan, the Inventory and Freeze stages recorded that rounding rule and a characterization test caught the difference during the side-by-side run, before any line switched.
This is an illustrative example, not a client result. It assumes 120,000 lines of code, SQL Server, four serial devices and one ERP. The effort split is our planning assumption.
Option Explicit, remove GoSub, test suite.Testing runs through every phase and adds up to the 35 to 50% range.
Replace it when the app only duplicates what the ERP does today. If a screen exists to post production output or move inventory, Business Central or your ERP may now do that natively. Keep custom code for what is truly unique, such as a special labeling rule or a device workflow.
Test this per function during inventory, not per app. Often a third of the screens can retire and the rest migrate. Our guides on legacy app modernization: rewrite, refactor or replace and legacy system integration go deeper on the trade-offs.
Yes, for exceptions, not for control. Once the app talks to the ERP through APIs, agents inside your ERP and CRM can handle shortage alerts, work-order status and quality triage. A person approves anything that posts money or changes a system. Business Central agents run on the online version only, as our on-premise vs online post explains.
We start with the inventory, because it decides everything after it. As a Microsoft Solutions Partner, we build and run the app with the same team, with a person approving each cutover step. Our dotnet migration work follows these steps, and we apply it across manufacturing clients:
Implementation Checklist
- Every form, OCX and DLL is listed with an owner
- Every printer, scale and PLC export has a replacement and a test
- Feature changes are frozen and announced
- Characterization tests pass on the live VB6 build
- No direct ERP table writes remain in the new data layer
- Target is current LTS.NET, not a version already out of support
- A rollback rule is written and has been tested once
- Operators have signed off on one full shift in the new UI
Pilot one workflow, such as label printing on a single line, and measure label error rate, time to complete a shift’s tasks, scale read failures and unexplained output differences. Book a 30-min call and we’ll scope that pilot with you.

Written by Rohit Dabra
Co-Founder and CTO, QServices IT Solutions Pvt Ltd
Rohit Dabra is the Co-Founder and Chief Technology Officer at QServices, a software development company focused on building practical digital solutions for businesses. At QServices, Rohit works closely with startups and growing businesses to design and develop web platforms, mobile applications, and scalable cloud systems. He is particularly interested in automation and artificial intelligence, building systems that automate routine tasks for teams and organizations.
Yes. Microsoft states the VB6 runtime is supported on Windows 10 and Windows 11 for the lifetime of the OS, as 32-bit code under WOW64. The IDE has been unsupported since April 8, 2008. The practical limit is your components, drivers and the people who can maintain the app.
VB.NET is the closest syntax and the shortest path. C# has the larger library base and hiring pool, so choose it if the team will maintain the code long term. Either way, reach functional equivalence before you add features. For plant devices, pair either language with a Windows desktop client.
No. Microsoft no longer ships a VB6 migration wizard and points to partners. Third-party converters such as Mobilize.Net VBUC give a baseline .NET codebase, but ActiveX controls, graphics, file IO and serial code usually need manual work. Test any tool on one real module first.
It depends on lines of code, third-party controls, hardware interfaces, ERP coupling and test coverage. In our illustrative plan, a 60-form app with four serial devices takes about 24 weeks. Treat any vendor figure as a vendor estimate. A two-to-four-week inventory gives you a defensible number.
Start with the inventory: forms, components, database connections, ERP tables, printers, scales and PLC exports, with an owner for each. Then freeze changes and write characterization tests against the live VB6 build. Pilot one workflow before you commit to the full plan, and agree the rollback rule up front.

Plan your VB6 to .NET migration in phases: inventory what the app touches, move data access first, then the UI, and run old and new side by side.

Use this year end close checklist for manufacturers: 25 tasks with owners and dates in Business Central, plus the audit file your auditors will ask for.

SYSPRO order entry automation reads emailed customer POs, matches parts and prices, and drafts the order for approval in Teams. See how it works.

Can’t fill your open Power Apps developer role? Compare four options, from training staff to a partner build, and learn when hiring is still the right call.

Azure DevOps original estimate, Remaining Work and Completed Work explained with a worked task, common mistakes and how logged time keeps all three honest.
Azure DevOps time tracking free? Built-in fields cover estimates, not time logs. See what an extension adds, the price and the 7-day trial, then decide.
Next step
Ready to plan the first phase of your move?
Bring the app, the people who know it and your ERP version. We will help you pick what moves first and what stays put until later.
Book a 30-min call →
Plan your VB6 to .NET migration in phases: inventory what the app touches, move data access first, then the UI, and run old and new side by side.

Use this year end close checklist for manufacturers: 25 tasks with owners and dates in Business Central, plus the audit file your auditors will ask for.

SYSPRO order entry automation reads emailed customer POs, matches parts and prices, and drafts the order for approval in Teams. See how it works.

Can’t fill your open Power Apps developer role? Compare four options, from training staff to a partner build, and learn when hiring is still the right call.

Azure DevOps original estimate, Remaining Work and Completed Work explained with a worked task, common mistakes and how logged time keeps all three honest.
Azure DevOps time tracking free? Built-in fields cover estimates, not time logs. See what an extension adds, the price and the 7-day trial, then decide.
Every quote comes from a published review on GoodFirms, Clutch or our own site. Click a source to read the full review.
Trustpilot5.0★★★★★See reviewsGoodFirms5.0★★★★★45 verified reviews
G25.0★★★★★See reviewsClutch5.0★★★★★Quality 5.0 · Schedule 4.8
Google4.7★★★★★Mohali office“QServices was highly professional, knowledgeable, and approachable. We continue to work with them on other projects.”
“Quality assurance is often overlooked, but these guys take that very seriously. … their team of experienced, dedicated developers and highly skilled engineers quickly dissected and decomposed every problem and presented solutions and options that directly met my needs”
Erik BrownBusiness owner and software engineerClient review“The supplier delivered the application on time and was responsive to our needs. He was also flexible, which allowed us to make changes on the fly.”
Zoltan BodnarCFO, Yusen LogisticsGoodFirms“Thank you Sahil and team for wonderful collaboration right from day 0. … Highly recommend the developers.”
Ranbeer MakinClientClient review“They are always looking for new ways to improve their products and services and to deliver value to their customers.”
“I have had an excellent experience working with QServices. We have a highly collaborative relationship and I value them not just as contractors but as partners.”
Alex VanderElsClientClient review“Sahil undertakes every project with a high degree of professionalism. His communication style is unmatched and he is always available to resolve issues or just discuss the project.”
Philmore J.ClientClient review“Responsive, patient and professional. Consistent weekly attention to our project, and new ideas we hadn't asked for.”
Michael WilliamsonPresident and CEO, United Way of Southeast LouisianaGoodFirms“I have been working with them on a project for a year now … They have been able to solve problems that come up with bugs or development and able to communicate well with me.”
Steven LewisClientClient review“We had been working on the app for two years. QServices built it in two months.”
Brian WallerPresident, Technology Association of IowaGoodFirms“All projects were delivered on time and were fully completed upon delivery.”
“They had excellent quality. The hypercare they provided after the project went live is exceptional.”

Founder and CEO

Chief Sales Officer
Thanks, we’ve got your details. A named member of our team will reply within one business day.
You leave the call with
What should we cover on the call?
Pick one so the right person joins. You choose the time next.
Pick a time for the call