Skip to content

Code to close all instances of a VB application with one button

Erhan Suvari

Asked Mar 13, 2006, 2:53 PM EST2 answers
Share
LinkedInX

Hi

Does anyone know if there is some sort of button code which can close all instances of your application?

I want to be able to close all forms and all instances of an application with the click of one button.

Sometimes, when I use the Me.Visible = False code , instances of my application are still running unseen. I want to be able to avoid this.

Regards

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    just put

    application.exit()

    on your button click even.
    0
  • 1 short reply
    • 0
      Application.Exit()
      0