QB64 Phoenix Edition
porting over VB6 to QB64PE (and VB6 IDE that runs in browser & modern Windows ) - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11)
+--- Forum: General Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=2)
+--- Thread: porting over VB6 to QB64PE (and VB6 IDE that runs in browser & modern Windows ) (/showthread.php?tid=3540)

Pages: 1 2 3 4


porting over VB6 to QB64PE (and VB6 IDE that runs in browser & modern Windows ) - madscijr - 03-18-2025

I've got some old VB6 programs I made many moons ago that I want to port over to QB64PE. I have the code, and I can open the .frm, .bas, .cls, etc. files in Notepad++ to see the code, but the only way to see the actual GUI elements would be with the IDE. I'd have to do some digging to get out my old XP laptop with Visual Studio 6, so I can open the old projects. However I recently came across the Visual Basic 6 IDE recreated using C# (link: AvaloniaVisualBasic6 at github) and downloaded the ZIP. It has subprojects for desktop, android, iOS. and browser (you can try it on the web at  Visual Basic 6 IDE running in the browser, it's built using web assembly). The Web version doesn't support importing existing projects so I'd have to download Visual Studio Community so I can build the EXE for my desktop. Has anyone tried playing with this? 

Anyway I thought this was interesting and might interest some of you who used to do VB6.

(Next I might want to learn InForm if I want my progs to use GUI controls. I have never played with InForm so will have some reading to do - new challenges!)


RE: porting over VB6 to QB64PE (and VB6 IDE that runs in browser & modern Windows ) - bplus - 03-18-2025

InForm pretty good substitute for VB6 and it's forms but...

More fun to BYOB, Bring-Your-Own-Body-of-work Smile

https://qb64phoenix.com/forum/showthread.php?tid=689

and where THAT got started:
https://qb64phoenix.com/forum/showthread.php?tid=607


RE: porting over VB6 to QB64PE (and VB6 IDE that runs in browser & modern Windows ) - madscijr - 03-18-2025

Thanks - wow, there's so much there. 
Is there support for a grid control? (I don't need it tied to a database or anything.)

Some discussion on the VB6 recreation:

(It looks like they even got Free Pascal running in a web browser with web assembly?!)


RE: porting over VB6 to QB64PE (and VB6 IDE that runs in browser & modern Windows ) - bplus - 03-18-2025

"
Is there support for a grid control? (I don't need it tied to a database or anything.)
"

If you mean snapping controls to the grid, yes in InForm and yes even in my GUI you can move controls around the screen, in a designer application of my GUI.


RE: porting over VB6 to QB64PE (and VB6 IDE that runs in browser & modern Windows ) - madscijr - 03-18-2025

I'm talking about the FlexGrid AKA MSFlexGrid AKA MSHFlexGrid, a very useful control that lets you display and/or edit data or even images in a spreadsheet-like table and trap click events against its cells, or even bind it to a data connection (I don't need that):

[Image: Flex-Grid1.png]

After MS discontinued Visual Basic 6 and support for the control dried up or it wasn't freely available, there were some 3rd party & open source versions released, e.g.,
If InForm has anything like that, I would make use of it, but if not, I'd be curious what kind of workarounds people use for that kind of functionality in QB64/PE?


RE: porting over VB6 to QB64PE (and VB6 IDE that runs in browser & modern Windows ) - bplus - 03-18-2025

Didn't we try something like that for grades years ago?

I will dig around...

Ah found it!
   

2022-12-06 GUIa by bplus


RE: porting over VB6 to QB64PE (and VB6 IDE that runs in browser & modern Windows ) - LEM - 03-19-2025

(03-18-2025, 09:59 PM)madscijr Wrote: I'm talking about the FlexGrid AKA MSFlexGrid AKA MSHFlexGrid, a very useful control that lets you display and/or edit data or even images in a spreadsheet-like table and trap click events against its cells, or even bind it to a data connection (I don't need that):

[Image: Flex-Grid1.png]

After MS discontinued Visual Basic 6 and support for the control dried up or it wasn't freely available, there were some 3rd party & open source versions released, e.g.,
If InForm has anything like that, I would make use of it, but if not, I'd be curious what kind of workarounds people use for that kind of functionality in QB64/PE?
Of course I love QB64PE, but you might also consider checking out TwinBasic (https://github.com/twinbasic/twinbasic/releases and https://twinbasic.com/).  It has an MSFlexGrid control replacement that I have been using with good success. I see that you are referencing that FlexGrid (made by Kr00l, https://github.com/Kr00l/VBFLXGRD). It is available as a downloadable package within TwinBasic (Project - References - Available Packages). TwinBasic is not yet fully vb6-compatible, but it is getting closer and closer.


RE: porting over VB6 to QB64PE (and VB6 IDE that runs in browser & modern Windows ) - madscijr - 03-19-2025

(03-18-2025, 11:45 PM)bplus Wrote: Didn't we try something like that for grades years ago?

I will dig around...

Ah found it!

2022-12-06 GUIa by bplus
Hmm, that could work, if it can detect not only what row but what column they clicked on... 

Is that this? 

Grade Keeper and Reports

(03-19-2025, 12:13 AM)LEM Wrote: Of course I love QB64PE, but you might also consider checking out TwinBasic

I'll never say never, but my brain can only handle so many different platforms!
I'm pretty happy with QB64PE - I'll keep TwinBasic on the backburner to check out in the future.
Thanks! Smile


RE: porting over VB6 to QB64PE (and VB6 IDE that runs in browser & modern Windows ) - LEM - 03-19-2025

(03-19-2025, 12:40 AM)madscijr Wrote:
(03-18-2025, 11:45 PM)bplus Wrote: Didn't we try something like that for grades years ago?

I will dig around...

Ah found it!

2022-12-06 GUIa by bplus
Hmm, that could work, if it can detect not only what row but what column they clicked on... 

Is that this? 

Grade Keeper and Reports

(03-19-2025, 12:13 AM)LEM Wrote: Of course I love QB64PE, but you might also consider checking out TwinBasic

I'll never say never, but my brain can only handle so many different platforms!
I'm pretty happy with QB64PE - I'll keep TwinBasic on the backburner to check out in the future.
Thanks!  Smile
Great! I just figured since you were dealing with vb6 programs and TwinBasic aims to be vb6-compatible (and has the same syntax + expanded syntax), it might be of interest to you. Good luck!


RE: porting over VB6 to QB64PE (and VB6 IDE that runs in browser & modern Windows ) - bplus - 03-19-2025

madscijr:
"Is that this? 

https://staging.qb64phoenix.com/showthread.php?tid=1194
"

What kind of link is that! ??? I was in some old QB64PE forum with one of my old Avatars ??? and the top banner was blank with scroll bar WTH?
What is staging?

But yes NASA Cow started the grade book thing. He posted on at least 2 different threads and you link which is a tiny blip in the quote was not the one I posted grades app for GUIa.

Looks like I started my GUI app here: 
https://qb64phoenix.com/forum/showthread.php?tid=1175&pid=10659#pid10659

But we weren't talking about spreadsheet like controls. I was just using a highly modified list box.