Results 1 to 3 of 3

Thread: Quiting a program

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    9

    Question

    When I was writing my program on the end form I have a command button "Exit Setup" in the code I have

    Private sub CmdExit_Click()
    End
    End Sub

    When I made this a .exe I found that even if the user closes the project (using the button) it is still running (nothing is on the task bar too) Does anyone know a command so my project will quit completely?

    Thanks in advance,
    Justin

  2. #2
    Guest
    Try this:

    Code:
    Dim fForm As Form
    
    For Each fForm In Forms
        Unload fForm
        Set fForm = Nothing
    Next fForm

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    9
    Worked great thanks!
    Justin

Posting Permissions

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



Click Here to Expand Forum to Full Width