I have not quite figured this out, and I am sure there is a solution that I have not found .. that seems to be the case ..
I've built a usercontrol and embedded about half a dozen files required for control to operate as expected. When the control is loaded, the needed resources are extracted to the users temporary folder, modified, loaded etc ...
When the application housing the usercontrol ends, presumably it calls the Dispose method of the control, which is where I located the IO.File.Delete(tempfile) call ... but the temp file isn't being deleted, in fact the Dispose method is never called .. at least I can't tell that it has been called.
If these files were in the main application, I would simply delete the files when the form is closing ... I'll be using this control in other applications in the future and I would like it to clean up after itself.
Any suggestions?