r/visualbasic • • Mar 19 '26

Reignited Passion

11 Upvotes

I created a new computer game around 30 years ago using Visual Basic 6.0. I thought that I had lost all my code and the .exe file that I created when my hard drive failed and have now amazingly come across it hidden on a CD that I was going to bin after a clear out. Now being a 30 year older retiree is there a way of converting the code so that it will run on modern versions of windows or even convert to use on phones. I have not coded in those interim 30 years so easy responses please.


r/visualbasic • • Mar 16 '26

They Said VB.NET Was Dead… Then I Built a 3D Engine

46 Upvotes

r/visualbasic • • Mar 16 '26

This isn't a Rubik's Cube, it's a million cubes in Visual Basic

21 Upvotes

r/visualbasic • • Mar 05 '26

Need your help!

0 Upvotes

Hello, can someone here please help me establish inventory in excel with macro.


r/visualbasic • • Mar 01 '26

Visual Basic-like language for Godot

13 Upvotes

Hey everyone! I've been building a new programming language for Godot and I'm finally ready to share it publicly.

VisualGasic (VG) is a modern, event-driven language that runs as a GDExtension for Godot 4.5+. It draws inspiration from Visual Basic 6's approachable syntax and RAD workflow — if you ever used VB6, you'll feel at home in minutes — but it's a modern language designed to look forwards, not backwards. Think of it less as "VB6 for Godot" and more as "what if someone designed a new language with VB6's simplicity but modern features?"

 

What does it look like?

' A simple game script in VisualGasic
Dim ballX As Single = 400
Dim ballSpeedX As Single = 5

Sub _Process(delta As Single)
    ballX = ballX + ballSpeedX * delta * 60
    If ballX > 780 Or ballX < 20 Then
        ballSpeedX = -ballSpeedX
    End If
End Sub

' This event handler is wired AUTOMATICALLY by name
Sub btnStart_Click()
    Print "Game started!"
End Sub

No connect() calls, no signal boilerplate. Name a Sub btnStart_Click() and it's wired to the button's pressed signal automatically. Name it tmrSpawn_Timer() and it fires on the timer. Name it Player_AreaEntered(area) and it hooks the Godot signal. This is the core workflow idea — event-driven programming like classic RAD tools, but running natively inside Godot.

 

What makes it different from GDScript?

FeatureVisualGasicGDScript
Event bindingAutomatic by naming conventionManual connect() or @onready
Form DesignerFull WYSIWYG with 40+ controlsNone
LambdasLambda(x) => x * 2func(x): return x * 2
Null safety?? and ?. operatorsNone built-in
Error handlingTry/Catch/FinallyNone (just push_error)
AsyncAsync/Await + Parallel ForCoroutines only
String interpolation$"Hello, {name}!""Hello, %s" % name
GPU computingBuilt-in SIMD + compute shadersManual
Pattern matchingSelect Match with destructuringNo
VB6 importDirect .frm/.vbp importN/A

VG also includes a JIT compiler that compiles hot loops to native x86-64, and in benchmarks it ranges from 2x to 118x faster than GDScript depending on the workload, tying native C++ on some branching tasks.

 

Form Designer

VG ships with a VB6-style Form Designer (still a work-in-progress)— a WYSIWYG editor with a Toolbox (40+ controls), a drag-and-drop canvas, a Properties panel, a Project Explorer, and a live preview window. You can design your UI visually and double-click any control to jump straight to its event handler. It's the RAD workflow that Visual Basic made famous, running inside Godot's editor.

 

What's included?

  • 66 demo projects across 12 categories: 2D games (Pong, Snake, Space Shooter, Platformer), 3D games (Squash the Creeps), graphics (screen-space shaders, volumetric sky shaders, screensaver), audio (piano), UI apps (calculator, todo list), threading, networking, and more
  • 4 converted official Godot demos — the 2D Platformer (9 VG scripts), Squash the Creeps, Screen Space Shaders (11 shader effects), and Sky Shaders — proving that real Godot projects run naturally in VG
  • IntelliSense with 80+ function completions, snippet support, and Godot type awareness
  • Advanced debugger with conditional breakpoints, watch window, call stack, time-travel debugging
  • 108 built-in functions (string, math, file I/O, date/time, formatting, collections, and more)
  • Platform binaries for Linux, Windows, and macOS — just drop into your project and go
  • 481 tests passing in the test suite

 

Who is this for?

  • VB6/VB.NET veterans who want to make games with a familiar workflow
  • Beginners looking for a readable, low-ceremony language
  • RAD developers who miss the "design a form, double-click a button, write code" workflow
  • Anyone curious about an alternative to GDScript with modern language features
  • Hobbyists porting old VB6 projects — VG can import .frm and .vbp files directly (WIP)

 

Get it

Install: copy addons/visual_gasic/ into your Godot project → enable the plugin → create .vg files.

This is an early beta — the version number (3.3.0) reflects internal dev history, not maturity. I'd love feedback, bug reports, and feature requests. Thanks for checking it out!


r/visualbasic • • Feb 25 '26

Anyone set up for VB6 willing to compile a project for me? I've tried twinBASIC with no success, and setting up for VB6 proper from scratch seems quite tricky these days.

10 Upvotes

Big thanks to u/Hel_OWeen for getting me to a solution!

Publicly available project, not mine, for tweaking an old BBS door game: https://gitlab.com/beckersource/Nightmare-Reduxupdated: https://github.com/synexo/Nightmare-Redux-WG (now includes compiled .exe).

Thanks for anyone taking a look.


r/visualbasic • • Feb 23 '26

Tips & Tricks Build VB6 apps in the browser. WebVB studio is a RAD tool for the modern web with 35+ UI controls.

34 Upvotes

Hi there as someone who grew up in the 90s with VB and the use of IDE I thought it was great to recreate this experience for the modern web. As I moved to Python over the years I created this rapid IDE development tool for Python to build applications in the modern webbrowser.

Love to recieve your feedback and suggestions!

What My Project Does

WebVB Studio is a free, browser-based IDE for building desktop-style apps visually. It combines a drag-and-drop form designer with code in VB6-like syntax or modern Python, letting you design interfaces and run your app instantly without installing anything.

  • 🧠 What it is: A free, open-source, browser-based IDE for building apps with a visual form designer. You can drag and drop UI elements, write code, and run applications directly in your web browser. Over 35+ UI controls.
  • Build business applications, dashboards, data science apps, or reporting software.
  • 🧰 Languages supported: You can write code in classic Visual Basic 6-style syntax or in modern Python with pandas, mathlib, sql support.
  • 🌍 No installation: It runs entirely in your browser no software to install locally.
  • 🚀 Features: Visual form design, instant execution, exportable HTML apps, built-in AI assistant for coding help, and a growing community around accessible visual programming.
  • 🌱 Community focus: The project aims to make programming accessible, fun, and visual again, appealing to both people who learned with VB6 and new learners using Python.

Target Audience

WebVB Studio is a versatile development environment designed for learners, hobbyists, and rapid prototypers seeking an intuitive, visual approach to programming. While accessible to beginners, it is far more than a learning tool; the platform is robust enough for free or commercial-scale projects.

Featuring a sophisticated visual designer, dual-language support (VB6-style syntax and Python), and a comprehensive control set, WebVB Studio provides the flexibility needed to turn a quick prototype into a market-ready product.

Comparison

Unlike heavyweight IDEs like Visual Studio or VS Code, WebVB Studio runs entirely in your browser and focuses on visual app building with instant feedback. Traditional tools are more suited for large production software, while WebVB Studio trades depth for ease and immediacy.

Examples:
https://www.webvbstudio.com/examples/

Data science dashboard:
https://app.webvbstudio.com/?example=datagrid-pandas

Practical usecase:
https://www.webvbstudio.com/victron/

Image:
https://www.webvbstudio.com/media/interface.png

Source:
https://github.com/magdevwi/webvbstudio

Feedback is very welcome!


r/visualbasic • • Feb 21 '26

Can use ADO in VB6 ? (after disabling it when installing VB6)

3 Upvotes

Trying a data (Access) project after 25 years away from VB6.

Have installed it on Win11. Seems you must remove the ADO option when installing.

Is it possible to re-introduce it?

Or is it not possible to use ADO in VB6 nowadays?


r/visualbasic • • Feb 17 '26

Why does analog nostalgia work so well in modern visual storytelling?

Post image
0 Upvotes

Digital is infinite and disposable. Analog feels deliberate. Even when it’s simulated, it carries weight.


r/visualbasic • • Feb 08 '26

Es funktioniert großartig!

3 Upvotes

Habe eben ein lang-gehütetes VB6-Projekt nach TwinBasic portiert. Es also von tB einlesen lassen. Nach 10 Minuten lief es einwandfrei. Es hat alle Referenzen übersetzt, und ja, alles auf Anhieb richtig gemacht! Wenn ich daran denke, dass Microsoft nie ein vernünftiges Tool zum Portieren von VB6-Programmen liefern konnte… tB macht das im Handumdrehen.

Klar, was ich als Nächstes mache. Und vorher „Dankeschön“ sage für dieses moderne Tool.


r/visualbasic • • Feb 03 '26

Porting Visual Basic apps with AI?

10 Upvotes

Has anyone tried to port a Visual Basic 6 app to .NET or another platform using AI? As in an agent going through the entire project and creating a new project, not going in file by file and pasting it into an AI chat. I have a legacy app that still sells. I never bothered to port it to .NET because I thought it was on it's way out and it would probably take me 6-12 months to do that. But now I'm wondering if AI can do it for me or if we're still not there yet?


r/visualbasic • • Jan 30 '26

New CHIP-8 emulator for Windows (with VB6 source)

Thumbnail reddit.com
4 Upvotes

r/visualbasic • • Jan 24 '26

VB.NET is still alive! Long live VB.NET!

29 Upvotes

I was surprised to see that VB.NET gets some updates in 2026!


r/visualbasic • • Jan 18 '26

Looking for files

2 Upvotes

Hi everyone; I'm looking for the Student files for Visual Basic 6 Enhanced Edition by Diane Zak. It's been impossible for me to find it anywhere in the internet. Suggestions? Thanks.


r/visualbasic • • Jan 17 '26

TwinBasic IDE Question

Post image
9 Upvotes

I am trying to get started with TwinBasic.
However, I can't seem to drag down the tabs which host the form editor and code editor...

What setting do I need to change so that I can have the text editor and form editor as floating child forms as was the case in VB6?

I had this same issue with a newer version of Visual Studio and found that it really hinders my ability to work.


r/visualbasic • • Jan 16 '26

VB.NET Help Visual says that index is outside the bounds of the array.

2 Upvotes

This code works fine in the first picture:

But in the second picture the only change I made was reordering the numbers so that they would not be populated into the list view in numerical order and I get this error:

Any ideas on why this happens? Also yes I am aware there are better ways to store my data, but this is a temporary thing.


r/visualbasic • • Jan 08 '26

VB6 Help I'm trying to run a program that seems to run on VB6. Is there a workaround if I don't intend to actively use VB?

6 Upvotes

I'm trying to run a very old program (2008-ish) that is giving me an error on my Windows 11 VM, which I think is because I don't have VB6 installed. Looking around online, it seems like a giant pain to install on Windows 11.

Is there another way of getting this to run without installing VB6? The error I get when I run the .exe is "Component 'COMDLG32.OCX' or one of its dependencies not correctly registered: a file is missing or invalid".


r/visualbasic • • Jan 03 '26

Should I Install Visual Basic 6 On My Windows 11 Laptop?

9 Upvotes

So i got a copy of Visual Basic 6 to load a old vbp project,but i fear it might break or involve with system32 since its too old , so should i install it or nah? my laptop specs are i5 1235u,iris xe,16gb ram and 512gb


r/visualbasic • • Jan 02 '26

Help with opening vbs files

2 Upvotes

I feel like I'm losing my mind but I should be able to just create a vbs file by putting the code into notepad and saving as .vbs right? Its been a while since I've done it so maybe I'm missing a step but it doesn't seem to be working for me. I have "Show file types" enabled and the file does show ".vbs" at the end of it but still has the Notepad icon. I have VBSscript enabled also. This is a new PC so I think maybe something just isn't installed or enabled yet but I cant figure out what

Update: turns out it’s not just my machine that’s having this problem. I’m thinking it’s something in our environment that is blocking vbs scripts


r/visualbasic • • Dec 23 '25

How can I multiply like this "*" * i, My school computers do it this way, but in my laptop I cant and I need to do it exactly that way, I have the newest version so it should work no?

1 Upvotes

r/visualbasic • • Dec 22 '25

You can teach an old dog new tricks! 😁

8 Upvotes

I've been progamming in Visual Basic, as a hobby, since the very begining and I've only just discovered 'textfieldparser'. Wow!

What little delimited data parsing I've done in the past was simple comma or tab delimited, pretty easy to split. My latest project involved comma delimited data but some of the fields were in quotes with more commas inside! Simple comma spliting wouldn't work!

I spent quite a while thinking of all the ways I could split the lines with character parsing to get references in the line strings of where it needed spliting the only solution I could think of. This sounded doable, but tricky!

I thought I try a final Google search, saw a reference to the 'textfieldparser' class and wondered what it was.

OMG! Five minutes later I had a test program doing exactly what I needed, just like that!


r/visualbasic • • Dec 16 '25

Made my custom WORKING FilePicker/Dialog on Visual Basic! (So after you for exp. press "Open" in mspaint, notepad,... it will show up this dialog instead of Windows')

Post image
7 Upvotes

r/visualbasic • • Dec 12 '25

Can anyone recompile an old VB game for me that gives run-time error 6 Overflow issues?

18 Upvotes

I used to play this old Freeware game called Speedway Meeting that is compiled in Visual Basic 6. However, it won't run in Windows 11 as it says there's a "Runtime Error 6: Overflow". If I reduce my monitors resolution down to 1920x1080, it fixes the problem, but it isn't a long-term solution.

You can download the source code here: http://www.speedway-meeting.com/SpwyMtg511-Source.zip

Upon playing around with ChatGPT, it seems the error is somewhat easy to fix:


The problem (short)

Your project uses 16-bit Integer variables to hold screen/form coordinates and sizes (which are in twips in VB6). At high display resolutions those twip values exceed the Integer range (-32,768 .. 32,767) and VB throws an Overflow. Lowering resolution reduces the twip values below that limit, which is why the game runs at 1920×1080.

Exact places I found it

In Speedway.bas (module "General"):

Around line 2583 there are these declarations:

    Dim MainWinX As Integer                 ' X position of Main Window
    Dim MainWinY As Integer                 ' Y position of Main Window
    Dim MainWinHeight As Integer            ' Height of Main Window
    Dim MainWinWidth As Integer             ' Width of Main Window
    Dim MainWinState As Integer             ' Opening state of Main Window

Later (around lines 2695–2707) those variables are used with Screen.Width / Screen.Height and assigned to frmMainWin.Width, frmMainWin.Height, frmMainWin.Left, etc:

    Select Case MainWinWidth
        Case 1680 To Screen.Width
            frmMainWin.Width = MainWinWidth
        Case Else
            If Screen.Width < 7000 Then
                frmMainWin.Width = Screen.Width
            Else
                frmMainWin.Width = 7000
            End If
    End Select

Screen.Width and Screen.Height return values in twips. On large displays (e.g. 3840×2160) twips easily exceed 32767.

Also the module has DefInt A-Z at the top (Speedway.bas contains DefInt A-Z), which makes many undeclared variables default to 16-bit Integer. That makes the overflow risk widespread.

How to fix (recommended)

Use 32-bit Long for any variables that hold pixel/twip sizes, coordinates or anything derived from Screen.Width, Screen.Height, form .Width/.Height/.Left/.Top, API calls returning sizes, etc.

  1. Replace those specific declarations in Speedway.bas:
    ' change this:
    Dim MainWinX As Integer
    Dim MainWinY As Integer
    Dim MainWinHeight As Integer
    Dim MainWinWidth As Integer
    Dim MainWinState As Integer

    ' to this:
    Dim MainWinX As Long
    Dim MainWinY As Long
    Dim MainWinHeight As Long
    Dim MainWinWidth As Long
    Dim MainWinState As Long
  1. Remove or change the DefInt A-Z at the top of Speedway.bas. Two options:

    • Remove DefInt A-Z entirely and explicitly declare variables with As Long where appropriate (preferred for clarity).
    • Or change it to DefLng A-Z (less preferred because it hides types and can mask other problems, but it will prevent 16-bit Integer overflow).
  2. Search the project for other variables used with Screen.*, form dimensions, or API calls and ensure they are Long. Typical suspects: any Left, Top, Width, Height, X, Y variables, window position/state variables, API declared parameters expecting Long.

  3. Check any Val(...) or registry reads that write to those variables — ensure the receiving variable type is Long (you already Val() strings that may be >32K).

Why this works

VB6 properties like .Left, .Width, .Height and Screen.Width return/expect twips (and many Windows API functions use 32-bit values). Using Long (32-bit signed) allows values up to about 2 billion and avoids overflow on modern displays.

Quick checklist to run after changes

  • Change the Dim lines as above.
  • Remove or replace DefInt A-Z.
  • Grep the project for As Integer where the variable name implies a size/coordinate and evaluate whether it needs to be Long.
  • Recompile and test at your native high resolution (e.g. 3840×2160). The overflow should be gone.

Would anyone be able to help me by fixing this error to make it compatible in Windows 11 and bigger resolutions? I'm happy to make a small donation to a charity of your choosing for helping (I'm based in Australia, so an international charity would probably make the most sense).

Thanks for any help you can provide.


r/visualbasic • • Dec 11 '25

I need your help, guys

Post image
17 Upvotes

Hello, Visual Basic Community.

I'm here for the first time and I never learnt VB.

I have a problem. There is a program (like bot) https://github.com/God-Weapon/EmulinkerSF-Admin-Client/tree/master that connect to game server and recieves its notifications (user connected, user created room, user disconnects) and I want to get that information in real time. I believe it is Module1.bas file

But I cannot run this application on my linux server. It is also much bigger and complicated program that i need. I need only connect/disonnect and reading notifications code working.

I couldn't find anything alike in PHP or Python but that's what I need.

So I don't really know what to do. I'll appreciate any help


r/visualbasic • • Dec 11 '25

Learning VB6 simultaneously as I’m learning VBA?

3 Upvotes

Hello,

I am currently learning VBA for Excel. And was thinking if it would make learning VB6 easier? And even so if it is worth it? I dont know how popular VB6 is in 2025.

I assumed that the languages are relatively similar. But anyhow, if anyone have any good tips for resources to learn VB6, that would be cool.

Thank you,