r/visualbasic • • Jun 20 '26

VB6 Help Port VB6 Desktop app to... What?

Ok, say I had a typical desktop app written in VB6 and somebody asked me to 'modernise' it.

And say, for whatever reason, they didn't want a web app based conversion.. i.e. they still wanted a desktop app.

What is your go-to stack for this type of conversion?

WinForms (.NET) - So stay in the Windows/MS ecosystem, maybe port to VB.net first? then across to C#? . This feels pretty safe but I think this would still be Windows only.

WPF (.NET) - Still sticking with MS. More modern but maybe a longer conversion path.

WinUI - I think this is the latest MS option... Is a little bit new (2021)

Flutter Desktop - Clear benefit is cross/platform out of the box and easy port to mobile app. Flutter approach is pretty far from the VB6 approach so it would be a long conversion path I think. The other downside is Flutter on desktop is even newer than WinUI (2022).

Electron - Again, cross platform but with memory issues I think. Web tech heavy so I think this means it would make it easy to port to Web if that was an option later.

Other options? Maui? Delphi?

13 Upvotes

71 comments sorted by

View all comments

Show parent comment

1

u/mdausmann Jun 21 '26

thanks u/Bonejob I will avoid.

2

u/Bonejob VB Guru Jun 21 '26

To answer your question, I specialize in converting vb6 apps to .net core (10 right now) and it depends on how well the original code was designed. We do a lot of Winform conversion, removing the data controls, replacing them with EF layer and DTO's and binding code behind not with the origional data controls. Datagrids are a bit of a pain in the ass sometimes but they can be migrated.

Our two choices are to stay in WinForms in .NET 10 so cost is lower or use Avalonia so we can compile for Mac, Linux, ARM, and Windows from one code base.

We replace access db's with SQLite most of the time. or if they want a stronger DB we use Postgres for multi user.

1

u/mdausmann Jun 22 '26

thanks for this u/Bonejob . That looks like a very pragmatic solution. Winforms/.net10 as a first sweep, low energy port and then Avalonia if your client want's cross platform.