Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Posted

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.

Nothing is as illusive as 'the last bug'.

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