CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Exit Command?

  1. #1
    Join Date
    Feb 2000
    Posts
    53

    Exit Command?

    What is the command to exit a program?
    I have a menu made and when I click on Exit, I wan't the program to shut down.

    Thanks for any help


  2. #2
    Join Date
    Jul 1999
    Location
    USA
    Posts
    101

    Re: Exit Command?

    use the 'end' command to exit.


    private sub mnuTest_click
    end
    end sub




    you can also use the form_unload event to unload a form


  3. #3
    Join Date
    Feb 2000
    Location
    garden grove, california
    Posts
    64

    Re: Exit Command?

    for the code jsut type in end


  4. #4
    Guest

    Re: Exit Command?

    End


  5. #5
    Join Date
    Feb 2000
    Location
    Indiana
    Posts
    308

    Re: Exit Command?

    The "End" statement is a **HORRIBLE** way to end your program. When VB encounters the "End" statement, your program exits immediately with no clean-up. Your best bet is to use Unload me

    . This fires your Terminate event and allows you to clean up.


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

Featured