I am trying to display forms from a module with this code:

Public Sub Main()
Dim SomeForm as New Form()
Dim SomeOtherForm as New Form()

SomeForm.Show()
SomeOtherForm.Show()
End Sub

The forms display (very) briefly, then vanish. My program then ends, and control is returned to the IDE. I have tried using the .ShowDialog method to make the forms persist (makes them modal), but of course then the problem is that you cannot display both forms concurrently. What am I doing wrong here? In VB6, once you loaded and showed forms, they would persist until closed.

--Steve K.
[email protected]