SurvivorTiger:
That will work OK in a very simple program. However you are liable to generate memory leaks. as your forms are not unloaded, and any activex controls will not be unloaded.
There have been several discussions on memory leaks and program closes in this forum.
VB Help says:
Note The End statement stops code execution abruptly, without invoking the Unload, QueryUnload, or Terminate event, or any other Visual Basic code. Code you have placed in the Unload, QueryUnload, and Terminate events of forms and class modules is not executed. Objects created from class modules are destroyed, files opened using the Open statement are closed, and memory used by your program is freed. Object references held by other programs are invalidated.
The End statement provides a way to force your program to halt. For normal termination of a Visual Basic program, you should unload all forms. Your program closes as soon as there are no other programs holding references to objects created from your public class modules and no code executing.
Take SemperFiDownUnda 's advice and do the right thing, that is write your cleanup code! Let me know if this helps
________________________________________________________________
If you are worried about how to post, please check out FAQ222-2244 first
'There are 10 kinds of people in the world: those who understand binary, and those who don't.'