r/visualbasic • • Aug 09 '26

VB.NET Help Adding string values to a listbox?

Post image
11 Upvotes

So I'm following a tutorial about VB for beginners, and one of the sections is where the guy assigns values to a listbox through its properties menu. He clicks the 3 dots next to "items" and just types all the options in.

I'm on a newer version though, and when I click on the 3 dots it doesn't let me type it all straight in - there's a dropdown menu for buttons, listbox items, etc. None of them work because apparently I can't convert a list item to a string, even though I used .SelectedOption

Am I looking in the wrong menu or something? How do I put a string into my listbox


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 • • Sep 23 '24

VB6 Help Trying to get Visual Basic 6.0 installed on Windows 11

11 Upvotes

I have now tried for several days and tried way too many different sites and possible fixes and i am completely running out of ideas.

The roadblock came swiftly and with force: Windows 11 prevents starting the Setup.exe file completely due to compatibility issues. The exact message is this: "This app may not work correctly"

I can either cancel or open microsofts help page which is honestly quite useless.

I tried every compatibility option, ran it as administrator, tried disabling the compatibility checker in the group policies, ran the system without other startup programs in a clean boot.

I never came past this single popup window.

With more searching i found that someone made an alternative installer: https://nuke.vbcorner.net/
But with the original authors passing this site is relatively dead it seems and i was not able to track down any mirrors of the program in the hopes of it being able to be executed.

All i am able to find is other people having issues with the installation process itself, not starting the executable itself.

I tried the original discs i have as well as other language isos i stumpled accross, none came past this message.

If you guys have any ideas i would be really grateful, i tried it on 3 different, but equally equipped windows 11 machines now and it did not work on any of them.

Edit:

After trying on a random win 11 laptop i had it did install just fine from my original cd. I still got the popup but the installer ran successfully.
So it seems to be a device specific issue leading to a problem without any errors.

I did not create a zero size dll or did anything else, only ran the compatibility mode changer and it worked.

Edit Nr 2.:

On the 5 main pcs i wanted to actually install it on i was not able to get it to work, but in case someone else stumples across this someday here is what i tried:

Exact behaviour is that it fails to even start the installer. When running it through WinDbg it exits with error code 5 access violation, the same error we can see in the event log.

I have not been able to get around this and i am starting to suspect its due to a random program that is installed, but i have not yet found the culprit.

Disabling windows defender did not work.
Neither did turning off exploit protection.
A silent install through the command line fails with error code 5, what that error code means is unknown, there isnt really much documentation about a silent install of VB6.0.

None of the different version of VB had a setup that worked for me. Sadly the VS6Installer did not work as well as it also needs to be able to run the setup.exe.

Clean booting windows also failed.

I am not willing to do it, but i suspect a clean windows install without any possibility of bloatware or preconfiguration could be a solution.

Edit Nr. 3:
Solution Found!
For some weird reason the installer threw a memory access violation error whenever i tried to start it, by setting the windows display language to English (United States) the issue dissapeared and i was able to install Visual Basic 6 from my original CD.

To add additional detail, the device was previously set to German


r/visualbasic • • Jan 13 '24

Visual Basic in 2024 and beyond

11 Upvotes

I've been searching job sites for positions that require Visual Basic skills in 2024, but I haven't found many listings. Can anyone in the industry or with relevant knowledge share insights on the current demand for Visual Basic? Are there specific industries or locations (in the US) where Visual Basic is still in demand? Any advice or information would be greatly appreciated.


r/visualbasic • • Mar 29 '23

Article Article "Nostalgic for VB? BASIC is anything but dead"

11 Upvotes

Nostalgic for VB? BASIC is anything but dead

Cool little article touching on other Basic interpreters around and some that came and went.


r/visualbasic • • Jan 13 '23

Can't find the VB6 Mouse Wheel.exe anywhere

11 Upvotes

For about an hour, I've been trying to find the VB6 Mouse Wheel.exe referenced by Microsoft on this page, can't find any download links.

Until now, I've been using the easily obtainable VB6ScrollWheelFix7.exe, which can be found on multiple sites, but it won't work ever since I installed a service pack for VB6 (to fix previous errors with some directories).

This mysterious VB6 Mouse Wheel.exe is being referenced by a crapload of sites with links leading to either a deleted site at download.microsoft.com or to the page I've mentioned above, which doesn't seem to contain any download links.

Does anyone happen to have this thing downloaded, or know where it is still up for download? Maybe I'm just being stupid and don't know how to look on the help page.

Plz help


r/visualbasic • • Oct 02 '22

Help maybe?

Post image
11 Upvotes

Hi guys it’s me again, I don’t know why all these things have Xs and it’s giving me a million errors and I think I messed up my whole project any one know how to fix this?


r/visualbasic • • Sep 07 '22

Visual Basic for Mac?

11 Upvotes

I want to code Visual Basic on Mac (2022 M2 Air). I understand you cannot run it on Apple Silicon, so no visual studio etc. I tried emulation but virtualBox doesn't work and parallels costs a lot of money.

There must be a way to code Visual Basic on Mac, even debugging the code and not actually running it? If I could simply debug it then run it on another device, that'd be really useful (Or possibly run online).

How do I go about doing this? There must be a way. I would greatly appreciate any help. Thank you


r/visualbasic • • Aug 20 '22

Found this at my dad's was mine would this be useful to anyone?

11 Upvotes

Would like it to go to someone who might make use of it.?


r/visualbasic • • Apr 14 '22

Tips & Tricks Question from a non-programmer...

11 Upvotes

This might be a dumb question but my friend has a company and an entire app written in Visual Basic 2010 Express (yeah, I know) that runs on one specific computer only, at his office. Attempts have been made to get the app to work on other computers, to no avail... He's able to build the app just fine, but on other computers it runs with errors, even after making the necessary changes on the cfg file. I know this is a huge problem, but not the main reason I'm posting... The app itself connects to a few databases on his local mssql server (2017 if I'm not mistaken). However, business is growing and my friend wishes to have his databases hosted remotely and connect to them using the same app. What are our options to make this happen? Is this even possible without having to rewrite the entire app in another language?

Note: my opinion is that we should hire a team and start from scratch. But he's on a very tight budget and thinks the app is salvageable and just wants to know if there's any possibility to connect it to a remote database like Azure.

Thanks in advance for any pointers and guidance.


r/visualbasic • • Nov 22 '20

What are the rules, conditions, etc. for selling a program you made in Visual Studio?

11 Upvotes

I know with Unreal engine, they want 30% of your profits. I was just wondering if there are any restrictions, limitations, etc for products made with Visual Studio (free edition)?


r/visualbasic • • Nov 28 '17

C#'s free and lightweight debugging aid, now available for VB.NET

Thumbnail
marketplace.visualstudio.com
11 Upvotes

r/visualbasic • • Jan 14 '16

[VB For Noobs] Classes and Objects

11 Upvotes

Class Is In Session
Classes can be thought of as the template or blueprint of an object that VB will follow when you create (or "instantiate") said object. Say you're creating a student database. While you could store each student's name, age, classroom, grades and so on in separate variables...

Dim student1Name as String
Dim student1Age as Integer
Dim student1Classroom as String
Dim student1Grades as Integer
Dim student2Name as String
...

... and, sure, that would work, but that's also really silly. It's far easier, and more logical, to store each student's associated variables in a discrete object, like so:

Public Class student
  Public Property name as String
  Public Property age as Integer
  Public Property classroom as String
  Public Property grades as Integer
End Class

Creating Objects
Once you've created a class, how do you create an object from that class? Remember that a class is nothing more than the template that all objects of that class follow. So, in order to create a new student object, you do this:

Dim student as New student

Yeah, it's really as simple as that! To assign values to an object's properties, you can do this...

student.name = "Bob Marley"
student.age = 36
...

or this...

With student
  .name = "Bob Marley"
  .age = 36
  ...
End With

Advantages of Classes
Now, so far it doesn't seem like there's any real benefit to using classes. After all, you have to do about as much typing as you would for all other methods, so what's the point?

Aside from the inherent advantages to a more coherent data structure - such as ease of debugging, code readability, modularity and so on - objects also allow you to quickly and easily iterate through a list of them.

Say I wanted to total the grades of the students in the classroom "3A". If I have all of my student objects in a List(of student) called studentList, here's a simple piece of code that will do that:

Dim total as Integer = 0
For Each student in studentList
  If student.classroom = "3A" then total += student.grades
Next

You can even turn that into a function:

Public Function getClassroomGrades(classroom as String) as Integer
  Dim total as Integer = 0
  For Each student in studentList
    If student.classroom = classroom then total += student.grades
  Next
  Return total
End Function

Or write another function to total the grades of each class:

Public Function getGrades() as Dictionary(of String, Integer)
  Dim total as New Dictionary(of String, Integer)
  For Each student in studentList
    If total.ContainsKey(student.classroom) then
      total(student.classroom) += student.grades
    Else
     total.Add(student.classroom, student.grades)
  Next
  Return total
End Function

When to use Classes?
In essence, if a group of variables logically ought to be grouped together, you should probably create a class and store them as such. Really. There's a reason why so many modern languages brand themselves as Object-Oriented Programming Languages, and that's because objects make so much more sense. Trust me, I coded before objects were a thing, and you do not want to go back to those dark days!


r/visualbasic • • May 27 '14

Noob Questions Megathread

11 Upvotes

Got a noob question that you're embarassed to start a new post about but still want it answered? Post it here and hopefully someone will answer it for you!


r/visualbasic • • May 21 '13

Want to learn VB from square 1? 10 Episodes from a new series. Learn Fast.

Thumbnail
youtube.com
11 Upvotes

r/visualbasic • • Jul 16 '26

Built a free, open-source Lobby Radio Player in VB.NET/NAudio with smart ad injection and volume fading

10 Upvotes

Hey everyone,

I recently had to set up background music for a local business. The goal was simple: stream a live web radio, but inject their local promotional audio ads every few minutes. To my shock, almost every software that can do this is either locked behind an expensive monthly subscription, incredibly bloated, or looks like a control panel for a nuclear reactor. Since I couldn't find a dead-simple, free option, I built one myself: Lobby Radio Player (written in VB.NET, running on .NET 4.7.2).

What it does:

  • Smart Audio Fading: It doesn't just abruptly cut the music. It smoothly fades out the web stream, plays the local .mp3/.wav ad, and gently fades the music back in.

  • 100% Multithreaded: The UI never freezes or goes "(Not Responding)" while buffering streams.

  • Uptime Scheduler: Set your operating hours (e.g., 08:00 to 23:00) and it handles standby/wake-up automatically.

  • Auto-Reconnect Guard: If the Wi-Fi drops, it quietly tries to reconnect every 5 seconds without crashing.

  • Independent Volumes: Keep the music background-friendly, but make sure the ads are loud and clear.

It’s completely free, open-source under the MIT license, and I've provided both a classic installer and a portable (.zip) version that runs without installation.

Check out the code, download it, or contribute here: https://github.com/0xVasic/lobby-radio-player

Quick note before the licensing police arrives in the comments: This is just a player (like VLC). The end-user is fully responsible for complying with local copyright laws and paying venue music licenses. Also, it doesn't modify the radio stream online; it literally just automates the volume slider on the local PC (essentially doing a digital "manual mute") to play a local audio file over the venue speakers, and then slides the volume back up.

Let me know what you think or if you have any feature requests!


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 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 • • Nov 07 '25

Helped a VB6/Access ERP become cross-platform with Svelte + Rust + Tauri — lessons learned + checklist

10 Upvotes

Hi folks — I’m a dev who’s been porting legacy VB6/Delphi apps to Svelte + Rust + Tauri for small/medium businesses (recent project: migrated a VB6+Access ERP to a single cross-platform Tauri app + PostgreSQL).

If you maintain legacy apps, here are 6 quick signs your app needs a rewrite:

  1. Requires an old Windows VM to run

  2. No test coverage / single dev left

  3. Security patches can’t be applied

  4. Hard to integrate with modern APIs (OAuth, HL7, etc.)

  5. Frequent data corruption / crashes

  6. Painful reporting / exports

If you want, drop your (sanitized) app constraints below or DM me — I offer a free 30-minute audit and a short migration plan (risks, rough estimate, options: rewrite vs. incremental module extraction).


r/visualbasic • • Nov 04 '25

Anyone have sample projects of this VB.NET OOP book?

10 Upvotes

Hello,

I have a paper book named "Building Reusable Components with Visual Basic .NET" by (John Alexander, Kenneth Spencer, and Tom Eberhard.)

But lost its sample files, and could not find them online, even on MS press as it is an old book, 2003!

Any help please to share them in RAR?

Thanks for All.


r/visualbasic • • Oct 21 '25

Decompile VB6 exe with most of the source available

10 Upvotes

20-ish years ago, I wrote an online Pokemon battle simulator in VB6. I've wanted to put the source online for some time just for historical purposes, but I lost it years ago.

I dug through some old hard drives recently and found the source for version 0.9.2, as well as installers/EXEs for 0.9.4, 0.9.5, and 0.9.6 (the final version). I don't have changelogs past 0.9.2, I suspect the changes were mostly bugfixes for those last versions.

The decompilers I've seen don't really convert it to readable code when going straight from the exe. But are there any where I can provide a project and an exe, and it will just show me the differences? I can probably recreate the code if I know where to look.


r/visualbasic • • Dec 31 '23

Getting Started

10 Upvotes

So I'm in my mid forties and have just started teaching myself visual basic

I've worked with SQL for 15 years and I've always wanted to get further into programming, but no job actually gives you the time to do so, so I'm just getting to it now.

Today, I made my first calculator. I even remembered to put in a condition to check for division by zero.

It's a really simple calculator and not a good one, but I'm real proud that I've managed to put one together.

That was all. It's hard developing a new skill, so I'm really excited about it and wanted to share.

Thank you.


r/visualbasic • • Apr 10 '23

Something Pretty Right: A History of Visual Basic

Thumbnail
retool.com
10 Upvotes

r/visualbasic • • Jan 20 '23

starting vb

10 Upvotes

Hey , I'm starting Visual Basic and I'd like to know how should I start , if anyone have any tips for me :).


r/visualbasic • • Sep 07 '22

Hello, check comments for problem

Post image
10 Upvotes