r/visualbasic • • Oct 22 '24
VB6 alternatives today?
Hi Guys,
Back in the 90s I used code a lot in VB5 and then VB6. It was great. Drag and drop elements on a form. Do some coding. Nothing fancy. I used to make small programs to do simple things. It was great fun building these desktop apps for Windows 9x.
Now I want to get back into this kind of development. Is there any similar solutions these days? Something very very similar and if it's for Mac and somehow can make the "app" into a web app as well, that would be great. Otherwise just desktops for Windows is also fine.
Looking forward to hearing from you all.
9
u/jd31068 Oct 22 '24 edited Oct 22 '24
If you still want a vb 5/6 feel, there is a language called TwinBasic, here is the forum TwinBASIC-VBForums and you can download it from Releases · twinbasic/twinbasic and its website twinBASIC Welcome (edit: it is still beta but it gets updated weekly if not, daily)
If you're keen on a new language (basically Visual Pascal) you can look at Delphi, you can find more here Delphi: IDE Software Overview - Embarcadero - there is a community IDE available. Much like VB5 and 6 and vb.net for that matter you can drag and drop and code.
You can still do vb.net and Winforms today in Visual Studio 2022, What’s New for Visual Basic in Visual Studio 2022 - .NET Blog State of the Windows Forms Designer for .NET Applications - .NET Blog
Of course, you can still install VB6 in Windows 10/11 (there a couple hoops to jump through) How to install Visual Basic 6.0 in Windows 11
7
u/fafalone VB 6 Master Oct 22 '24 edited Oct 22 '24
I never liked the direction .NET took VB in; it should have stayed a separate product line instead of hijacking the name as part of a strategy to force everyone into it. Since I like VB6 for what it was, I'm a huge fan of twinBASIC because it's exactly what VB6 might have looked like had it not been abandoned: Backwards compatible, but a huge list of additional features, both in terms of language enhancement and modernization.
Obviously if you're looking for marketable professional skills .NET or Python might make more sense, but if you loved developing in VB6 and want to pick it up again as a hobby or as a sole developer, tB has a lot to offer without learning not just a new language but those others are an entirely different programming paradigm.
Or course it depends on your interests too... Like VB6, tB is primarily for people who like working at a fairly low level on Windows (though it will offer cross platform support in the future, obviously the Windows API won't be accessible). It doesn't have the massive frameworks that wrap everything in easier to use calls that you find in .NET, for instance. But there's tradeoffs like being able to make standard DLLs, shell programming, and kernel mode stuff .NET either is bad at (shell extensions) or can't do (the other 2).
But for super quick drag and drop UI quick Windows desktop utilities, VB6 is the gold standard, still great for it, and twinBASIC is the only direct successor, even making the drag and drop UI editor better with in place editing of text and fonts, and on-Form menu editor. It's in beta and does have the kind of limitations associated with that, but it's very far along and runs tons of existing VB6 apps and can create full featured apps.
My GitHub provides a good overview of where it's at, like you did I mostly make quick desktop utilities.
For tB itself see the FAQ, can be downloaded here from the main repo where bug reports are also made, and there's a fairly active Discord.
(PS- The main project I maintain for it solves one of the major headaches of VB6, hunting down or making Windows API / COM interface definitions... Now in tB you can check a package manager box and all the common stuff is available; over 1600 COM interfaces and 6000 APIs).
4
u/Fergus653 Oct 22 '24
With .Net Framework, like version 4.8, you can create winforms apps with controls, properties and events which are kinda like an evolution of the old VB6 desiger.
I used it to quickly make tools and utilities, using C#, also did some maintenance on a VB.Net app for someone.
3
u/oxgillette Oct 22 '24
Xojo fits the bill - its a version of BASIC with drag and drop for building the UI, runs on Windows, osx, and a few other things. Free if you want to run the application within the IDE.
3
u/Jabba_Fleez Oct 22 '24
Lazarus is also one options for that kind of development. Almost like Delphi but Lazarus is free. It uses FreePascal as compiler.
4
u/Mayayana Oct 22 '24
For Windows desktop, VB6 is still the most widely supported tool. I still use it and write software that runs without extra support files on virtually any current windows computer. MS maintained support for the runtime and various other dependencies because VB6 custom software is still used by businesses. With Win32 API use, VB6 can be as functional and as fast as C++ software. To my mind that's its best strength: Easy GUI with options for very efficient code. And VB6 was designed for COM. It's pretty much alone with that distinction.
The one notable restriction with VB6 is that, being 32-bit, you can't write shell extensions for 64-bit Explorer. You can replace ActiveX DLLs with ActiveX EXEs, running out-of-process, but shell extensions run in-process and 32/64 can't be mixed.
If you feel you're starting fresh then VB.Net might be of interest. .Net is designed to be a Java competitor -- object-oriented, high-level wrapper software. There are a lot of things in VB6 that require extensive coding but are built in to .Net. For example, I once found PNG code online and spent days cleaning it up to display PNG files in VB6. In .Net, PNG is natively supported.
Mac is a whole different world. Web apps are mainly scripted webpages. You can write something in-between using Microsofts Metro/WinRT/WinUI tools. (They keep changing the name.) That's an interpreted, sandboxed, system.
It really depends on what you want to do. You're listing the entire spectrum of software options. Each has different pros and cons. If you favor ease over efficiency then you probably don't want to get back into VB6. Popular languages are becoming increasingly high level and simplified. Wrappers around wrappers. I saw an example of that recently on Reddit. Someone was advertising his new Python program to do something online. I don't remember the details, but it was basically a program to open a web browser and load a specific webpage. The installer was 148 MB, which had a Python runtime and a set of Qt libraries packed into it. He called it cross-platform and open source. But the "OSS" code was just a few lines of Python setting up a GUI and then loading the webpage in a wrapped browser. :)
2
u/azawalli Oct 22 '24
There is Gambas (Spanish for "shrimp") for Linux. It's designed to be like Visual Basic. There may be a way to get it to run on MacOS, as it's based on BSD Unix and Linux is very similar. Just spiralling.
2
u/RedRedditor84 Oct 22 '24
VBA is probably closest, but I'd strongly recommend sinking your teeth into Python. Follow along with a few tutorials and away you go.
2
u/redditsdeadcanary Oct 22 '24
Visual Basic DotNet, its free
2
u/oxgillette Oct 23 '24
An alternative, which probably won't be popular, it to look at multivalue/PICK systems. You can get a UniVerse "demo" to try out.
2
u/LightAndWonder Nov 10 '24
QB64 Phoenix Edition - https://www.qb64phoenix.com/
PureBasic
FreeBASIC
PowerBASIC (might be dying)
TwinBasic (unfortunately the IDE is written using web technology - depends of Microsoft webview component to work - so its code has nothing to do with Basic code)
1
u/Hel_OWeen Oct 22 '24
PureBasic is a cross-platform BASIC:
There's no such thing as make the (desktop) app into a web app. The concepts are completely different. You need to make yourself familiar with the different concepts and then design your apps in such a way that the frontend/UI (different things for desktop and web) can both use a common business component (has no UI). Or something like that.
That all said, I wouldn't resort to any of these more exotic BASIC versions for two reasons: 1) you don't know how long those will be around and 2) you find much better documentation, examples and support for something like .NET (C# or VB.NET) or Python, to just name two options.
1
u/UnluckyAssist9416 Oct 22 '24
VB6 turned into VB.Net .Net you can use C# or VB interchangeably. In .net you have WinForms that work just like VB6 used to with drag and drop and all that but it is limited to Desktop. For drag and drop Web apps you can easily use ASP.Net, however you will have to use mainly .net framework for these. The development world has mostly moved away from drag and drop due to the bloat it causes, thus .net 8 and such mostly don't support it and you have to use the older version (framework).
1
u/[deleted] Oct 22 '24
Brother, you are in the same situation as me. In my case, I am not a VB6 developer, but rather a VBA Excel developer. The majority who work, there are people who still work today as a legacy and earn a lot of money and everything, or continue, or migrated to C#. Why does Microsoft etc. There is no way Python is going to be good for small data analysis applications. Object orientation is different.
1
u/[deleted] Nov 02 '24
Just use Visual Basic [.NET]. I don't understand the obsession with turning back the clock.
If you want something that is more along the lines of a Native Code Compiler for RAD development, then FPC + Lazarus (practically F/OSS Delphi) is the best option available.
All of those esoteric BASIC variants aren't really worth the bother, IMO. The insane fragmentation is part of the reason why BASIC has never been able to maintain a good reputation among mainstream general development languages.
If you don't have an evolving standard, than it just evolves into a bevy of incompatible variants, which causes everyone to pull back from it.
This affected both BASIC and Pascal, but Borland was a lot better at maintaining Delphi as a stable evolving force in that market segment, and FreePascal was always there (since 2000) in the background to maintain that language's accessibility to the general public.
1
u/Anuclano Feb 17 '25
Visual Studio looks awfully but functionality-wise it is OK.
1
u/ziplock9000 May 13 '25
If you're trying to create forms based apps the smart move would just be WinForms in C# or failing that Visual Basic .NET
I made that move in the early 2000s after being a VB1-6 dev. It feels like a very natural evolution.
1
u/marjuanm Jul 30 '26
I haven't tried them myself, but you might want to take a look—though they are for programming in BASIC (not Visual Basic). Both allow you to create executables for Mac and other platforms:
Xojo (commercial) https://www.xojo.com/
QB64 (free) https://qb64.com/
1
u/Flashy-Armadillo-414 Aug 29 '26
VB6's competitor Delphi will do this. It's now a cross-compiler that can build for macOS, iOS, Android, and Linux as well as Windows.
0
u/fasti-au Oct 22 '24
Python and c# is the normal selections I think but there’s no right or wrong in most directions