Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

 

When I use me.close() . It stops the running application, instead of closing the form.

 

frmMenu.Show()

Me.Close()

 

The above code does not display the frmMenu Form, instead it closes the application when the Me.Close() is executed

 

Thanks

  • *Gurus*
Posted
One of the overloads of the Application.Run method takes no parameters, and creates a message loop not tied to any form. You should create a sub main, and show your first form before calling Application.Run(). You'll need to call Application.Exit() to shut down the message pump manually though.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

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