I have a web browser control which I load with a variety of word docs.
If I do the following :
ThenCode:webBrowser1.Navigate(Application.StartupPath + "\\" + filename_A);
I always get the error/ExceptionCode:webBrowser1.Navigate(Application.StartupPath + "\\" + tempFileNam_B); System.IO.File.Delete(filename_A);
"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





Reply With Quote