Check Out This Visual Basic 6 Rebuilt in C# That Runs in The Browser

https://bandysc.github.io/AvaloniaVisualBasic6/

This is amazing. So many programs were created in VB6. It’s one of the first languages I learned - some software I wrote over 20 years ago in VB6 still runs on my workstations today.

The VB6 IDE doesn’t work well on modern Windows, so this could help many old codebases get updated more easily.

@Nash

It’s one of the first languages I learned

Same here, it’s one of the few I can genuinely say I mastered.

I learned it in high school and taught myself during summer to stay ahead… ended up being ahead of my teacher.

@Ren
I remember adding line numbers to my code so I could use Erl to find out where my program crashed:

It looked something like:

5   On Error Goto ErrHandler
10  For i = 1 to 10
20    DoSomething i
30  Next i
40  Exit Sub
ErrHandler:
Debug.Print "Error", Err.Description, "Occurred on line", Erl

@Nash
Commentor seems to have missed the visual in their basic.

@Nash
On Error Resume Next

That was a great relief when I learned I could ignore my bad logic.

Harlyn said:
@Nash
On Error Resume Next

That was a great relief when I learned I could ignore my bad logic.

We must be similar people

Harlyn said:
@Nash
On Error Resume Next

That was a great relief when I learned I could ignore my bad logic.

The magic I learned as a teen was DoEvents, which stopped the UI from freezing during long loops.

@Phoenix
How did I just learn about this now?!

Harlyn said:
@Nash
On Error Resume Next

That was a great relief when I learned I could ignore my bad logic.

Those are probably the most confusing four words in computing…

Harlyn said:
@Nash
On Error Resume Next

That was a great relief when I learned I could ignore my bad logic.

The way VB.NET manages all this internally is pretty interesting too.

@Nash
Plus, it compiles to native code. That’s impressive. Love you VB6, you’ll always be missed

@Nash
Honestly, when I see modern React frameworks with component designers, I can’t help but feel like we’re circling back to VB6. It’s built on the W3C/WHATWG stack, but still. It made me realize how effective VB6 was back then.

@TriviaTitans1
It was incredible for quickly setting up simple applications. You just drag a control onto a grid, double-click, write code. It was the easiest native UI development I’ve experienced.

@Nash
Dan Appleman’s Visual Basic Programmer’s Guide to the Win32 API was one of my favorite books back in the day.

@Nash
This could really be useful for all those old VB6 programs still in use for business systems. It’s better than trying to work with the original IDE on Windows 11.

Mckinley said:
@Nash
This could really be useful for all those old VB6 programs still in use for business systems. It’s better than trying to work with the original IDE on Windows 11.

Did you check the repo? This seems more like a learning project. Not sure how practical it is.

@Nash
I recall watching someone experiment with VB5 on the school computers. I began researching what he was using and it started my programming journey. After high school, I earned a computer science degree.

The visual editor to build applications was top-notch.

@Nash
Speaking of old IDEs not working on Windows, I had to tweak a VB4 app about five years ago. When I downloaded the old IDE, it didn’t occur to me why the mouse wheel wouldn’t work in the editor.

Then it hit me. Mouse wheels hadn’t been invented when I wrote the original VB4 code.

@Nash
I created a complete game engine and MMORPG client/server using VB6.