Hi;

While attempting to delete a VB program I'd recently written I got a message saying that it could not be deleted because it was currently locked by another user.

Upon further investigation I noticed that the Windows Task Manager process tab was showing multiple copies of the program running.

After some testing I noticed that when I use the End statement to terminate a program all is well. However if I click the little red x in the upper right hand corner of the program window the program ends but still shows up in the task Manager display.

Does anyone know how to prevent this from happening.

Thanks
Lin