I have a web browser control which I load with a variety of word docs.

If I do the following :
Code:
webBrowser1.Navigate(Application.StartupPath + "\\" + filename_A);
Then
Code:
webBrowser1.Navigate(Application.StartupPath + "\\" + tempFileNam_B);
System.IO.File.Delete(filename_A);
I always get the error/Exception
"The process cannot access the file because it is being used by another process."

How can I clear this up ? Is there any way to unlock the file after loading a new file ?


Thanks In Advance All