When I use the:

Unload FormName

method, the form disappears, but if I try to delete the program the computer says that the program is in use.

Am I not using the correct command to close the program?