I'm not sure how VB works exactly.. it is very undetermined and unpredictable what it will do.. but from a C++ programmers point of view.. this would be very bad practice.

Your program will no doubt leave the handle to the DLL open and sitting in memory somewhere.. as well as a few other resources.

What you SHOULD do, is set a flag in the DLL, check for it in the Form, and unload both from the form.

chem