Skip to content

Covers VB6-to-VB.NET migration, COM interop, and legacy pattern modernization with side-by-side code examples.

CCM score
52 of 100
skills.sh installs
356
GitHub stars
79
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Variant-to-typed conversions, default properties, ByRef defaults, On Error to Try-Catch, and fixed-length strings
  • Includes early-bound and late-bound Excel automation, COM-visible .NET class and interface attributes, and regasm and tlbexp registration
  • Enforces explicit COM object release in Finally blocks with Marshal.ReleaseComObject to prevent leaked Excel processes
  • Designed for developers maintaining VB6 code or planning an incremental migration with a COM interop wrapper

Install

$ npx -y skills add bobmatnyc/claude-mpm-skills --skill vb6-legacy -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

VB6 Legacy and COM Interop

Patterns for maintaining VB6 code and strategies for migrating to VB.NET with COM interop.

VB6 to VB.NET Migration

Key Differences

' VB6 - Variant types
Dim data As Variant
data = 123
data = "Hello"

' VB.NET - Strong typing with Option Strict On
Option Strict On
Dim data As Object  ' Still avoid when possible
Dim number As Integer = 123
Dim text As String = "Hello"

' VB6 - Default properties
Text1.Text = "Hello"
Text1 = "Hello"  ' Uses default Text property

' VB.NET - Explicit properties required
TextBox1.Text = "Hello"  ' Must be explicit

' VB6 - ByRef default
Sub ProcessData(data As String)  ' ByRef by default

' VB.NET - ByVal default
Sub ProcessData(data As String)  ' ByVal by default
Sub ProcessData(ByRef data As String)  ' Explicit ByRef

' VB6 - On Error
On Error Resume Next
On Error GoTo ErrorHandler

' VB.NET - Try-Catch
Try
    ' Code
Catch ex As Exception
    ' Handle error
End Try

Common Migration Issues

' VB6 - Fixed-length strings
Dim name As String * 50

' VB.NET - Use regular string and PadRight
Dim name As String = "John".PadRight(50)

' VB6 - Currency type
Dim amount As Currency

Details

Repository
github.com/bobmatnyc/claude-mpm-skills
Category
.NET & C#
First seen
Jun 3, 2026

Questions

What does the vb6-legacy skill help with?

The vb6-legacy skill covers classic VB6 patterns, COM interop, and strategies for migrating VB6 code to VB.NET. It gives examples of converting VB6 idioms such as Variant types, On Error handling, and Collection objects into modern VB.NET equivalents.

How do I install the vb6-legacy skill?

Run npx -y skills add bobmatnyc/claude-mpm-skills --skill vb6-legacy -y in your project. After that, the agent can apply VB6 migration and COM interop guidance to your Visual Basic code.

Which skills are in the same category as vb6-legacy?

vb6-legacy sits in the .NET and C# category on Claude Marketplaces, alongside dotnet-backend-patterns, dotnet-best-practices, nuget-manager and microsoft-code-reference. It focuses on the legacy VB6 side, covering migration and COM interop rather than modern .NET backend design.

Does vb6-legacy show how to use COM objects like Excel from VB.NET?

Yes, the skill includes early binding with a type library reference and late binding through reflection, both shown with Excel automation. It also covers releasing COM objects with Marshal.ReleaseComObject to avoid leaving Excel processes in memory.

Can vb6-legacy help me expose a VB.NET class to COM clients?

Yes, the skill shows how to build COM-visible .NET components using ComVisible, Guid, ClassInterface and ProgId attributes. It also includes the regasm and tlbexp commands for registering the assembly and generating a type library.

More from bobmatnyc/claude-mpm-skills

All 154

Similar to Vb6 Legacy

More .NET & C#