Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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..

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...