Quote:
create a main sub, make it the start up object, and in the event, create an instance of the form, then showdialog it... then in the shown event of the form, run the game loop. your loop exit condition ( ProgRunning = False) probablty should be behind a button or something, but not the dispose event for sure... then after exiting the loop, use me.close to close the form, which will return to the main sub
seems a bit useless because a main sub doesn't do anything there, just shows the form.
Quote:
In event-driven Windows, subordinating the events to a loop running in the UI thread seems like a bad idea, as does a Sub Main for the same reason.
This isn't a problem. Notice the line "Application.DoEvents()" If i don't include that you can't even close without breaking and ending but with it all events run as usuall (there will be lag of course if the time drawing is really long though).