Click to See Complete Forum and Search --> : Exit Command?


DJKAOS
February 14th, 2000, 03:15 PM
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

sriky
February 14th, 2000, 03:20 PM
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

The Matrix
February 14th, 2000, 05:06 PM
for the code jsut type in end

February 14th, 2000, 11:14 PM
End

Kyle Burns
February 15th, 2000, 02:56 PM
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.