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
Printable View
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
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
for the code jsut type in end
End
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.