vb6-legacy

Guide VB6 to VB.NET migration with COM interop strategies.

68|19|Updated Nov 21, 2025
One-click install
npx skills add https://github.com/bobmatnyc/claude-mpm-skills --skill vb6-legacy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vb6-legacy
Source: https://github.com/bobmatnyc/claude-mpm-skills/tree/main/toolchains/visualbasic/legacy/vb6-interop
Command: npx skills add https://github.com/bobmatnyc/claude-mpm-skills --skill vb6-legacy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides guidance and code examples for maintaining classic Visual Basic 6 (VB6) applications and migrating them to modern VB.NET, with a focus on COM interop.

Core Features & Use Cases

  • VB6 to VB.NET Migration: Highlights key syntax and conceptual differences between VB6 and VB.NET.
  • COM Interop: Demonstrates how to interact with COM components from VB.NET using both early and late binding.
  • Use Case: You have a critical business application written in VB6 and need to integrate it with a new VB.NET service, or plan a phased migration. This skill provides the patterns to achieve that.

Quick Start

Use the vb6-legacy skill to understand how to call a COM object from VB.NET using early binding.

Frequently Asked Questions about vb6-legacy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I call a VB6 COM component from VB.NET?

You can call a VB6 COM component from VB.NET using COM interop with either early binding, which requires adding a direct reference, or late binding via dynamic types. This Skill provides code examples and best practices for both binding approaches.

What is the best way to plan a VB6 to VB.NET migration?

The best way to plan a VB6 to VB.NET migration is through an incremental approach. This Skill outlines conceptual differences, common issues, and explicit DO and DON'T guidelines to modernize legacy codebases systematically.

How do I make a .NET component visible to VB6 applications?

To make a .NET component visible to VB6 applications, you create a COM-visible .NET component. This Skill demonstrates the setup required for exposing .NET assemblies to COM and handling interop correctly.

What are common issues when maintaining legacy VB6 code alongside VB.NET?

Common issues when maintaining legacy VB6 alongside VB.NET include differences in error handling, file I/O, and collections. This Skill details these distinct conceptual differences to ensure compatibility during phased migrations.

Can I integrate a new VB.NET service with an existing VB6 business application?

Yes, you can integrate a new VB.NET service with an existing VB6 application using COM interop strategies. This Skill provides the architectural patterns to bridge the two environments and achieve functional integration.