
Vb6 Legacy
If you're stuck maintaining VB6 code or planning a migration to VB.NET, this gives you the patterns and interop strategies to do it without losing your mind. It covers the key differences between VB6's loose Variant types and VB.NET's strict typing, plus practical COM interop approaches for when you need both codebases to coexist. The fact that it has 131 installs tells you there are still plenty of legacy VB6 systems out there that need attention. It's not glamorous work, but if you're dealing with decades-old enterprise code, having concrete migration patterns beats Stack Overflow archaeology.
- skills.sh installs
- 338
- GitHub stars
- 79
- last updated
- Aug 21, 2026
Install
$ npx -y skills add bobmatnyc/claude-mpm-skills --skill vb6-legacy --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Details
- Repository
- github.com/bobmatnyc/claude-mpm-skills
- First seen
- Jun 3, 2026
More from bobmatnyc/claude-mpm-skills
All 158- Vercel Functions Runtime338
- Vercel Overview338
- Vercel Security Access338
- Flexlayout React337
- Digitalocean Agentic Cloud334
- Artifacts Builder333
- Vercel Ai333
- Terraform332
- Validated Handler332
- Bad Example Skill329
- Emergency Release Workflow328
- Digitalocean Teams327
- Vector Search Workflows324
- Vercel Storage Data324
- Example Framework Skill323
- Vercel Teams Billing320
- Spring Boot319
- Rust Desktop Applications263
- Api Security Review257
- Anthropic Sdk254
- Testing Anti Patterns226
- Root Cause Tracing216
- Mcp206
- Tauri Event System203