News for hackers. Stuff that matters.
Re:Visual Basic 6 rebuilt in C# – complete with form designe... by Tistron on Monday November 11, 2024 @05:21AM (#42105985)
I can't get it to actually do anything, is it supposed to work to run programs in the browser? (mac, chrome)
Re:Visual Basic 6 rebuilt in C# – complete with form designe... by Closi on Monday November 11, 2024 @05:24AM (#42106007)
It does! Drag some controls onto the form and hit the play button.
Re:Visual Basic 6 rebuilt in C# – complete with form designe... by thom on Monday November 11, 2024 @05:31AM (#42106041)
Event handlers don't seem to run (I couldn't get the simplest MsgBox to work, at least). Is the actual language implemented?
Re:Visual Basic 6 rebuilt in C# – complete with form designe... by mrweasel on Monday November 11, 2024 @07:19AM (#42106629)
Same issue here, I add UI elements just fine, double click and generate the event handlers, but nothing runs.
Re:Visual Basic 6 rebuilt in C# – complete with form designe... by bandysc on Monday November 11, 2024 @07:25PM (#42111685)
Hey, author here, I didn't implement all the properties and events, i.e. the Click event on labels was missing. Updated the website with all the basic events.
Re:Visual Basic 6 rebuilt in C# – complete with form designe... by mrweasel on Tuesday November 12, 2024 @02:51AM (#42113601)
It works :-)

Amazing, such a fun project. Very well done.

Re:Visual Basic 6 rebuilt in C# – complete with form designe... by jmkni on Monday November 11, 2024 @05:35AM (#42106066)
They're working for me

Drag a button, double click, MsgBox "hello" in the event handler, hit play

Re:Visual Basic 6 rebuilt in C# – complete with form designe... by bandysc on Monday November 11, 2024 @07:24PM (#42111680)
Hey, author here, only a subset of VB6 language is implemented, I also didn't implement all properties and events, i.e. the Click event on labels. Updated the website with all basic events.

Considering how much response this project got, I might improve the VB6 interpreter :)

Re:Visual Basic 6 rebuilt in C# – complete with form designe... by Tistron on Monday November 11, 2024 @05:24AM (#42106005)
turns out I had a typo and it doesn't report errors as far as I can tell
Re:Visual Basic 6 rebuilt in C# – complete with form designe... by slfnflctd on Monday November 11, 2024 @05:54AM (#42106168)
Maybe you need to explicitly capture the errors to view the error number and/or message in a message box or something? I have no idea, just guessing based on some prior VBA work I did.
Re:Visual Basic 6 rebuilt in C# – complete with form designe... by Kwpolska on Monday November 11, 2024 @06:16AM (#42106298)
The real VB6 IDE would report errors like this at compile time.
Re:Visual Basic 6 rebuilt in C# – complete with form designe... by x0n on Monday November 11, 2024 @01:14PM (#42109206)
There's no compilation (yet?) -- the code is interpreted, so runtime only.
Re:Visual Basic 6 rebuilt in C# – complete with form designe... by bandysc on Monday November 11, 2024 @07:42PM (#42111799)
Syntax Errors reporting was missing indeed, but I just added it now and it would show a message box (while you write the code)