Consulting

Results 1 to 3 of 3

Thread: Solved: Close VB6 project from within?

  1. #1
    VBAX Regular andrew93's Avatar
    Joined
    Aug 2005
    Location
    Auckland, New Zealand
    Posts
    68
    Location

    Solved: Close VB6 project from within?

    Hi

    Is it possible to have a VB6 project close itself? I can't seem to find anything online and VB6 doesn't have an App.Quit command. The X button still works ok, but it would be nice for the users to be able to quit the application when prompted.

    Any ideas?

    TIA, Andrew

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,443
    Location
    Quote Originally Posted by andrew93
    Hi

    Is it possible to have a VB6 project close itself? I can't seem to find anything online and VB6 doesn't have an App.Quit command. The X button still works ok, but it would be nice for the users to be able to quit the application when prompted.

    Any ideas?

    TIA, Andrew
    Surely, unloading the form deletes the application from memory, so as you say, X works, but it would also work if you included

    	Unload Me
    in your app

  3. #3
    VBAX Regular andrew93's Avatar
    Joined
    Aug 2005
    Location
    Auckland, New Zealand
    Posts
    68
    Location
    Perfect thanks! I couldn't find the syntax for this no matter how hard I tried! Thanks again.
    Andrew

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •