Click here to Skip to main content
15,887,383 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i am making an anti virus with realtime protection and it has an open file dialog and a form that opens when a virus found by a file system watcher is found and when it opens the dialog when i click the delete button it says file is open in this program e.g in the open file dialog so how do i release the file.

What I have tried:

OpenFileDialog3.Dispose() i tried that and didnt work still got the exact same error.
Posted
Updated 18-Aug-17 12:16pm

1 solution

I'm very sorry for this but....
Quote:
am making an anti virus with realtime protection

... then releasing a file resp. handling it in the right way should be very Basic stuff for you.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900