|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
How to exit a program
I know it's kind of lame and such, but i still don't know, so i'm asking.
What's the function to call when i want to quit my program? That is, which function should i connect to my "Quit" button in my program? ![]() I tried exit() and quit() but none of em worked, please help, i can't seem to find any help on this online either. ![]() |
|
#2
|
|||
|
|||
|
unload the form, and then end
unload me end |
|
#3
|
||||
|
||||
|
Be sure to unload all loaded forms before you call end.
VB doesn't have the best memory management and calling end doesn't always clean the memory properly if there are still loaded forms present. |
|
#4
|
||||
|
||||
|
Fully
Remember you need to put an End command in the Form_Unload event as well. This is key.
__________________
Two things have come out of Berkeley, Unix and LSD. It is uncertain which caused the other. Last edited by GNUbie : November 10th, 2002 at 07:46 PM. |
|
#5
|
|||
|
|||
|
Hi All,
Hope someone can provide more info on closing VB apps. I have an application with dozens of forms and child forms, and using over 20 OCXs...once compiled the exe is around 10 MBs.. under development environment i can "End" the application properly....but when compiled and execute it, when i end the application, all the forms are gone, but under the "Task Management" utility in win2000 (CTRL + ALT + DEL) i can still see my app is running. in my MDI parent form_unlod, i use PHP Code:
but after some reading and etc... i used PHP Code:
with the above, i can end the VB App. any comments? Thanks and Best Regards
__________________
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > How to exit a program |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|