r/visualbasic • u/SadCredit6515 • 10h ago
VB.NET Help Vb
Ghnk
r/visualbasic • u/W0CBF • 4d ago
Not a programmer but have been fooling around with VB6. Question:: What is the command that causes the program to temporarily halt during the execution. AI said it was sleep xoxo but that didn't work. Can someone please help me out!
r/visualbasic • u/AsturiasTV • 12d ago
Hello. Many people likely don’t remember the incredible things that were built using Visual Basic; lately, on GitHub, all I see are calculators, basic applications, or simple scripts.
Back in the 2000s, many people created video games—like "AnimeWorld" or similar projects—and you could find some truly fascinating work, such as playing videos on the Windows XP desktop background or even implementing multiple virtual desktops. Sometimes, when looking at these old projects and comparing them to features Microsoft introduced later, or to software like "Wallpaper Engine," it becomes quite clear where those ideas originated—haha!
I often wonder: where did all those people go—the ones capable of building a "ray tracing" engine in VB6? And what ever happened to the videos of those game prototypes?
Personally, I’ve decided to share some of my own old projects—ones that I consider complex to pull off (whether with or without the help of AI), and which are somewhat rare or unusual. Although they are quite outdated, I hope they might still be useful for learning purposes. Some of them were a real challenge to develop. Even modern AI doesn’t fully document everything related to VB—often citing "security" reasons—likely because the language allowed for some pretty extreme, boundary-pushing techniques, including hacks and the like.
Note: I’m doing this because, honestly, I don’t know how much longer my old PC will keep running, and I wouldn’t want to lose so many projects that could potentially contribute to further progress within the VB community.
Most of the projects I publish are old—created a long time ago—and some were game services with a large number of users.
I hope this serves to demonstrate that VB is truly underrated.
3D Game Simple MDX: https://github.com/VassaMadness/3D-Game-Simple-FPS-DirectX-MDX
r/visualbasic • u/rdcore-admin • 13d ago
Blog: http://rubberduckvba.blog/2026/11/11/introducing-rdcore-rd-vba-language-platform-v0-1-0-alpha/
Rubberduck becomes VBA and introduces RD-VBA.
r/visualbasic • u/GameAddict5150 • 13d ago
We have a vb.net program that has been running for well over 15 years. Developed in visual studios 2003. Inside this vb.net app we incorporated a Calendar ActiveX Control from viscomsoft.com. We have installed this app hundreds of times and the O/S installs included Windows 7, Windows 8, Windows 10, and now Windows 11 and it loads no issue after installing the correct exe files and moving the dependency files into the C drive when app is installed.
We just purchased a new Windows 11 PC, installed the App and launched the app which includes the Calendar ActiveX Control built into the app's front page - it works no issue when i login as a domain administrator. When i switch over to domain user and launch, the app opens everything works except for this Calendar ActiveX Control i just see a little red dot on the top corner of the Calendar ActiveX Control the actual Calendar will not load.
this Computer is Windows 11 Pro and version 23H2
Here is app with calendar control when logging in as domain administrator, its working as intended and shows NOV 26

Here is the app with Calendar not loading when we log in as a domain user, its a little red dot top left corner of calendar screen

Here is what steps i've taken to troubleshoot :
2)uninstall and reinstall while logged in as domain user
3)open Registry Editor - HKEY_Classes_Root\CALENDAR.CalendarCtrl.1 - granted permissions , fully control to domain users.
Also HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\CALENDAR.CalendarCtrl.1 - granted permissions , fully control to domain users
4)Using Admin Command Prompt
C:\Windows\SysWOW64>regsvr32.exe "C:\Program Files (x86)\Calendar ActiveX Control\Calendar.ocx"

Interesting when i ran
C:\Windows\SysWOW64>regsvr32.exe "C:\ISS\Calendar.ocx" I did get a different error when opening the app, so that was promising but it still failed to open the Calendar control, so thought i was on to something there. It seems it was at least attempting to draw the Calendar based on the below error message i got.



5) i copied the files relating to this control Calendar.osx, Axinterop.CalendarLib.dll, and AxInterop.MSACAL.dll and pasted those files directly into the two below locations:
C:\windows\System32 and granted fully control privileges to domain users
C;\windows\SYSWOW64 and granted fully control privileges to domain users
Below is screen shot of X86 folder, it stores the Calendar ActiveX Control program.


Below is screen shot of c drive folder with app named ISS and all of the dependency files which includes the OCX calendar files.

Any suggestions i am running out of ideas of what to look at next ? frustrating that other PCs are running Windows 11 and on a domain user account the APP and Calendar control work no issues. Tomorrow my plan is to log into the other Windows 11 PC running the app and see if i can replicate any files relating to OCX control, perhaps its a version mismatch, but still cant explain why admin works and domain does not on this PC.
r/visualbasic • u/Legitimate-Bridge280 • 15d ago
r/visualbasic • u/Sea_Priority_4174 • 16d ago
Hi everyone!
Recently, I've been researching ways to debug VBScript running inside third-party Windows applications, especially applications that embed their own scripting engines and expose internal COM objects to scripts, but DO NOT expose those objects as externally accessible COM interfaces.
This creates an interesting challenge: you can write and execute scripts within the application, but debugging them with external tools like cscript.exe or a regular VBScript debugger isn't straightforward, because the scripts depend on the application's internal runtime and object model.
I've been experimenting with this problem and recently managed to get debugging working with Altium Designer DXP 2004, an older PCB design application.
Here's a short demonstration video.
I'm also working on a VS Code extension to make VBScript development more convenient, including debugging, code completion, and COM object exploration.
However, I'm curious about the current state of VBScript development:
I'd particularly like to hear from people who maintain legacy automation scripts or work with COM-based Windows applications.
I'm interested in hearing about your experiences and whether you think this is still a problem worth solving.
Thanks!
r/visualbasic • u/AkkukseliYT • 16d ago
Hello!
I need help troubleshooting and fixing a legacy Who Wants to Be a Millionaire? (WWTBAM) quiz control system. I have an old WWTBAM quiz control environment consisting of several Visual Basic 6 executable files (EXEs) and DLLs.
The programs launch, but there are several issues with the system:
- Main application: The main program crashes with Runtime Error 91 when I try to start the actual game (i.e. when attempting to load the first question).
- Question Library: The question library application has problems. It cannot properly access the question library files or generate the required "question stacks" (theres no buttons for functions x and y, but in the bts material there should be. Only bgs of the buttons are there).
- Graphics output: I would also like to get the system working so that it can output its graphics properly.
The original files and source codes are available. If there's someone with VB6 experience who would be interested in repairing these softwares, it would be great!
You can find the files here
https://github.com/Akkukseli/WWTBAM--software/releases/tag/v.1
r/visualbasic • u/chatoeusou • 16d ago
r/visualbasic • u/seven_237 • 24d ago
Before I wrote C# for a living, I learned to program by building AIM “progs” in VB6: clone loaders, chat bots, punters. Most of them drove the AIM client with FindWindow/SendMessage or talked OSCAR directly over Winsock.
I put the screenshots and some of the source up here: https://sevlegend.com/?page=programs
Curious if anyone else here came up through the AOL/AIM scene. What did you build?
r/visualbasic • u/Former_Ad_5957 • 26d ago
r/visualbasic • u/Acceptable_Ad664 • 29d ago
I manage to install VB6 after many problems, but when I tried to install the Service Pack 6, I couldn't because my VB6 is in spanish while the only SP6 I found is the english one, I have a university assignment tomorrow and I'm not sure if I have the time to uninstall my program and install it again in English.
Could I still use VB6 without the service pack 6? Or I'm forced to uninstall it because the too many error the program could have without the SP6?
r/visualbasic • u/Acceptable_Ad664 • Oct 26 '26
I have been trying for days to install Visual Basic 6 on my Windows 11 laptop for a university assignment, but when I use "acmsetup" to complete the installation, an error occurs, making it impossible to install.
I’ve seen tutorials on YouTube and in forums for installing VB6, but no one else has encountered this error. What should I do?
r/visualbasic • u/createaforum • Oct 25 '26
Doom Ported to VB6! Uses FreeDoom assets. Started with a Wolfenstein 3D which have on github as well (issue was free licensed assets), Have Quake in the works as well. Just want to see how good VB can do with commercial games, made with Claude/LLM.
r/visualbasic • u/mika • Oct 19 '26
Hello again,
I've developed an MCP for VB6 which allows agent harnesses (mainly tested with Claude Code) if anybody is interested. You can find it at https://github.com/mika76/vb6-mcp
Basically it routes the agent to work through the IDE instead of directly onto the files. This enables some nice features like being able to work on non-saved files as VB6 does not automatically save files to disk, and it enabled debugging within the app. It also helps not to ask for UAC admin prompts all the time and knows how to work with COM components and their dependencies.
Anyway, if anybody is interested have a look.
r/visualbasic • u/Roscoe-nthecats • Oct 18 '26
I had problems with accuracy in my project so I created this bit of code to try to understand and I'm even more confused. When declaring test1, Visual Studio automatically truncates the number to a double as soon as I finish typing it. I don't understand how to work with a Decimal variable, because how do you store anything in it without it converting to a double for some reason? I understand putting the D at the end but how do I add it when storing the result of a math formula?
Sub main()
Dim test1 As Decimal = 0.12345678901232222
Dim test2 As Decimal = 0.1234567890123456789012345678D
Console.Write(test1)
Console.Write(test2)
test1 = 23 / 94
test2 = 23 / 94
Console.Write(test1)
Console.Write(test2)
End SubThis gives me those results :
0.123456789012322
0.1234567890123456789012345678
0.24468085106383
0.24468085106383
r/visualbasic • u/SaladSilent5342 • Oct 14 '26
Hi again, r/dotnet! Some of you may remember my earlier posts about HoneyVB (RetroVB6), my project built around C# and ASP.NET Core to bring legacy software onto modern platforms.



For anyone who missed them:
The project has continued to grow, and I wanted to share where it is today.
HoneyVB is a browser-based development environment with a familiar VB6-style IDE, visual form design, code editing, debugging, and browser execution. You can import supported VB6 projects, inspect their forms and modules, and continue developing with the original code.
What can HoneyVB run? Here are some examples. The accompanying video shows a selection of them; Reddit’s upload limits mean I can’t fit all the recordings into this post.
These are just some of the applications and games running in HoneyVB, and not every example listed above appears in this video. The footage shows selected workflows and interactions, rather than complete compatibility with every feature of each application.
I’m also currently testing SharpDevelop, wxDev-C++, Lazarus, and Shareaza in HoneyVB to evaluate compatibility and identify what still needs work. These projects are undergoing validation—stay tuned for more demos and progress updates!
The VB6 compatibility work covers technologies that many real applications depend on:
.rpt files uses an optional Windows host with a compatible Crystal Reports runtime.Beyond VB6, HoneyVB uses a plugin architecture to integrate other languages, frameworks, and development environments. Its language coverage and ongoing integration work include:
Support varies across these integrations. Some include browser execution, while others currently focus on importing, analysis, editing, or resource previews. PowerBuilder, for example, currently provides project analysis and Window/DataWindow previews.
HoneyVB also provides build and export targets for Windows, macOS, Linux, Android, and iOS. Supported applications can be packaged with their browser runtime inside desktop or mobile shells. iOS device deployment uses an exported Xcode project that you sign with your own developer credentials.
One feature I’m especially excited about is running compiled VB6 applications without their source code. You can upload a supported VB6 executable and run it inside HoneyVB through its binary execution layer. Required runtime files and DLL/OCX dependencies still matter, but this creates possibilities for applications whose source has been lost.
I’m also actively developing native compilation for VB6, targeting Windows PE, macOS Mach-O, and Linux ELF executables. That work is underway, with the goal of compiling supported VB6 projects into native machine code for all three desktop platforms.
Compatibility is still evolving. I’m testing against original projects and improving the shared language and runtime implementations as issues appear. The goal is to make older software easier to explore, maintain, and keep using—from business applications and reporting tools to games and programs that communicate with hardware.
Thanks to everyone who commented on the earlier posts, and to the developers and preservation projects that made these historical sources available for study.
What legacy application or game would you bring back—especially if all you have left is the executable?
All third-party product names, trademarks, copyrights, and other intellectual property mentioned above belong to their respective owners. HoneyVB is intended for research and educational purposes.
HoneyVB reserves the right to offer different levels of functionality across releases and editions. The capabilities described above do not guarantee that all features will be available simultaneously or in every version. Language integrations, DirectX support, and other compatibility features may be introduced gradually, limited, or temporarily unavailable.
r/visualbasic • u/HarryAWA • Oct 07 '26
Greeting from Pennsylvania
In the Flightgear aircraft simulator program you may use a joystick or input control functions by the keyboard.
For example pressing and holding the [9] key moves the throttle in while pressing and holding the [3] key moves it out.
I would like to make a GUI (Graphical User interface) that emulates pressing the various keys by using control buttons in Visual Basic 6. (yes it is ancient but so am I) Also both the IDE and the VB 6S programs run well in Windows 11.
In this code I would like to emulate the button pressed while the mouse button is down over the control button.
I get lots of 9s in notepad until I release the mouse button. But then I get the blue ring of death: Program not responding.
Any suggestions would be appreciated. ( I do not know how to get the Code formated here.)
<
Dim bMouseButtonDown As Boolean
Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
bMouseButtonDown = False
End Sub
Private Sub ThrottleIn_Click()
bMouseButtonDown = True 'must be else we would not be here
ThrottleIn.BackColor = vbRed 'no Red button?
'AppActivate "FlightGear", True
AppActivate "Notepad", True
Do While bMouseButtonDown = True
Call keybd_event(VK_9, 0, KEYEVENTF_EXTENDEDKEY, 0) 'lots of 9s
Loop
Call keybd_event(VK_9, 0, KEYEVENTF_KEYUP, 0) ' stop the 9s
ThrottleIn.BackColor = vbYellow ' no yellow button?
End Sub
/>
r/visualbasic • u/Creepy-Level5136 • Oct 06 '26
Hi everyone,
I need urgent assistance with a project upgrade. I am rewriting/upgrading a software application originally built in 2015 (PEG 2015) designed to interface with a geoelectric signal reader machine.
COM3).Issue: I am unable to establish a working connection between my upgraded application and the hardware. I need to know:
PEG 2015.exe) that works with the machine.Serial Port Configuration Parameters: What are the standard ways or tools to determine the exact port settings required by the device?
9600, 19200, 115200)8)None, Even, Odd)1 or 2)RTS/CTS, XON/XOFF, or None)COM Port Sniffing & Data Protocol: What is the best workflow/tool to monitor the traffic between PEG 2015.exe and the machine without locking the COM port?
Decompiling / Inspecting the Legacy .exe**:**
PEG 2015.exe to retrieve the original serial settings and parser routines (e.g., dnSpy/ILSpy for .NET, Ghidra/IDA Free for native binaries)?Any guidance, code snippets for port handling, or reverse-engineering methodologies for serial hardware would be greatly appreciated! Thanks in advance!
r/visualbasic • u/codeobserver • Oct 04 '26
Maybe it’s already too late for a tool like this. Nobody really does drag-and-drop anymore in the age of AI.
But if you want to take a look: appmaker.io
r/visualbasic • u/galratner • Oct 02 '26
r/visualbasic • u/miku_claus • Sep 30 '26
Hey everyone!
After the intense and passionate discussion on my last post, many veteran developers pointed out the single most important truth about Visual Basic:
"A Basic compiler without the visual Drag & Drop Form Designer isn't a complete product."
So, I got straight to work. Today, I'm releasing the first public alpha of VBX Studio (v0.1.0)!
It’s an ultra-lightweight, cross-platform visual RAD IDE designed specifically for the VBX language, inspired by the classic VB6 workflow.
Caption, Width, Height, Left, Top). Modifying properties updates the canvas instantly, and moving controls updates the property grid.Sub Button1_Click()) and switches straight into the code editor.File -> Import VB6 to open classic 1998–2005 Visual Basic projects! It automatically parses .frm forms, converts twips to pixels, maps controls to the canvas, and extracts source code into our modern .vbxp project format.Pre-compiled standalone packages are ready for download across all major platforms and CPU architectures:
Release & Downloads: https://github.com/M5Devs/vbx-studio/releases/tag/v0.1.0 Studio Repository: https://github.com/M5Devs/vbx-studio Compiler Engine: https://github.com/M5Devs/vbx Any Problem? https://x.com/M5Devs
Special thanks to everyone in this subreddit whose tough feedback and questions pushed me to build this faster. Would love to hear your thoughts on the Form Designer!
r/visualbasic • u/Former_Ad_5957 • Sep 30 '26
Hello gamers, and welcome back to the channel! This video features a custom Excel VBA-enabled tool designed to organize PlayStation 3 collections within Emulation Station Desktop Edition, by configuring alternative emulator settings and providing library previews. The tutorial covers global and game-by-game configurations, managing various ROM formats, and troubleshooting playability. It seems like we have a lot to cover, so let's go!
r/visualbasic • u/miku_claus • Sep 28 '26
Hey everyone!
Like many who grew up loving the simplicity and instant joy of Visual Basic 6 (dragging buttons, writing readable code, and getting an instant `.exe`), I felt that modern programming has become overwhelmingly complicated.
So, as a project I built late at night after school, I created **VBX (Visual Basic X)**.
### What is VBX?
It's not an interpreter or a Python toy. It’s a native compiler written in Go that transpiles clean, human-readable Basic syntax directly into standard C99, compiling with `-O2` optimizations via GCC/Clang.
### Key Features (v0.1.0-alpha):
- 🚀 **Zero runtime dependencies:** Outputs single, standalone native executables.
- 🪟 **Native Dialogs:** Built-in cross-platform `MsgBox` and `InputBox` using native OS APIs.
- 🧘 **Classic Syntax + Modern Inference:** `Dim`, `Sub`, `Function`, `While...Wend`, `Do...Loop`, `Select Case`, `Exit For/While/Do`, and 1D Arrays with automatic type inference.
- 🔤 **Built-in Essentials:** Native `&` string concatenation, string functions (`InStr`, `Trim`, `Replace`, `Mid`, `Len`), Math functions, and `File.Write`/`File.Read`.
- 🛡️ **Memory-Safe:** Uses an internal ring-buffer pool for intermediate string routines.
- 📜 **License:** GPL v3 with a Runtime Library Exception (your compiled software is 100% yours).
We also created editor support for VS Code (VSIX available), JetBrains, Sublime Text, Notepad++, Vim, Neovim, Emacs, and Micro.
Repository: https://github.com/M5Devs/vbx
Editors Repo: https://github.com/M5Devs/vbx-editors
As Linus once said: *Just a hobby, won't be big and professional...* but I'd genuinely love to hear your feedback, thoughts, or what features you'd like to see next!
r/visualbasic • u/QuantumOdysseyGame • Sep 24 '26
Hi
If you are remotely interested in deep diving how differently quantum computers work compared to our transistor-based and also the algebra behind in a fully interactive way that teach computer science from scratch, oh boy this is for you. I am the Dev behind Quantum Odyssey (AMA! I love taking qs) - worked on it for about 9 years (3+ during PhD, the visual method I developed ended up being my thesis, it is a complete Hilbert space visualizer), the goal was to make a super immersive space for anyone to learn quantum computing through zachlike (open-ended) logic puzzles and compete on leaderboards and lots of community made content on finding the most optimal quantum algorithms. The game has a unique set of visuals capable to represent any sort of quantum dynamics for any number of qubits and this is pretty much what makes it now possible for anybody 15yo+ to actually learn quantum logic without having to worry at all about the mathematics behind.
This is a game super different than what you'd normally expect in a programming/ logic puzzle game, so try it with an open mind.
Nice to watch:
Khan academy style tutorials in qm/qc: https://www.youtube.com/@MackAttackx
Physics teacher stream with 400hs in https://www.twitch.tv/beardhero