Shannara Posted November 6, 2002 Posted November 6, 2002 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.. Quote
*Gurus* divil Posted November 6, 2002 *Gurus* Posted November 6, 2002 Application.Run(new frmLoading()) Your application needs a Message Pump if it wants to keep running and processing messages. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.