I don't get it. I'm using Windows XP SP2. Maybe you don't understand what I'm talking about. Here's what I did. I copied and pasted your code into VB and then I compiled it to an executable(c:\test.exe). Then I ran test.exe and clicked Command1. I opened the Task Manager, clicked the Processes tab and terminated test.exe. Calc.exe was also terminated.