I have a webbrowser control in my winforms application to display the selected PDF file, after which I want to move the PDF file to another location.
When I try to move the pdf file, it gives me an error that the file is being used. I tried to get the webbrowser to go to another page before moving it, but it still gives me this error that the file is being used by another process.
How can I free this pdf file so that I can just move it? Recycling your web browser did not do the trick.
source share