Need Help With Multiple Forms

unknownloser

Newcomer
Joined
Feb 17, 2005
Messages
7
Location
USA
I have a program that starts running Sub Main in a module. The code in the module tells the program to go to my main menu, frmInstallerIntro. But, when the code executes, frmInstallerIntro flashes on the screen and then the program terminates. Below is the code in my module:

Module Module1
Public installerIntro As New frminstallerIntro

Sub Main ()

installerIntro.Show()

End Sub
End Module

If anyone can give me some help with this problem, I'd really appreciate it. Thanks.
 
Use ShowDialog()

The Show method will show the window, and then continue with the rest of the code in the method that shows. In this case exiting your application. ShowDialog will also show the window, but the method that calls ShowDialog will wait on that line until the window is closed.
 
Back
Top