VB.NET Missing the obviously needed?

Shannara

Newcomer
Joined
Aug 15, 2002
Messages
7
Location
Emerald Cove, Unformed
I must be missing something here, but if I'm not, this is quite pathetic....

Say I have a module called ModMain. In this module I have a sub, called Sub Main(). Now, I have my project start up with this subroutine. In this project, I also have two forms, frmLoading, and frmMain.

Now, In my Sub Main (), at least in VB6, I could do the following.

Sub Main
FrmLoading.Show
End Sub

When doing this in VB.NET, it will show the form for about 2 seconds then shutdown the program...

This isn't right. The form should stay shown and the program should still run until the form is closed..

What's the problem here?

PS: I did look in this forum, as well as through the whole .NET docs, none of it mention this obviously needed issue..
 
Application.Run(new frmLoading())

Your application needs a Message Pump if it wants to keep running and processing messages.
 
Back
Top