This is an interesting thread. I bought a new win11 computer several months ago and used a special program to move all programs from old win10 computer to new win11 computer. I assumed vb6 moved and would work. I tested it and saw the same error you mentioned. Some googling I found a lot of info on how to install vb6 on win11. Some of the web pages are very complicated or run v6 in vm. The following link looks pretty easy and MIGHT work. I have not tested the steps...but Im gonna give it a go at some point when Im bored.
Visual Basic 6.0 Download for Windows 7/8/10/11 (32/64-bit)
goggle this for more ideas...
"visual basic 6 on win11"
Good luck
Bob