You surely have a main form in this program. Catch the Form_QueryUnload event and set the Cancel parameter to True.
>Hi. VB6 user. I have a program that I would like to stay open all of the time. Minimizing is fine, but keep open. Kind of a "memory resident" idea.
>
>Thanks, Randy
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com