Newbie - Quitting in VB6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abitlikehomer
    New Member
    • Mar 2006
    • 3

    Newbie - Quitting in VB6

    I have almost finished my project but i have made a command button. What i want it to do is when clicked, exit the application/project and the whole of VB closes. Is this possible? If so how?

    Cheers in advance.
  • zagarat
    New Member
    • Mar 2006
    • 3

    #2
    Just type
    End
    on its own

    Comment

    • CaptainD
      New Member
      • Mar 2006
      • 135

      #3
      It's a good idea to make sure all the forms in your program are closed prior to exiting the program.
      Code:
          Dim frm As Form
          'Unload the form
          For Each frm In Forms
              Unload frm
          Next

      Comment

      Working...