I have the startup object of my project set to sub main, and in the routine it loads the main form so I can start working with the project. But the form closes immediately after opening.

Any ideas???