问题描述
我正在制作一个具有实时保护功能的防病毒软件,它有一个打开的文件对话框,当找到文件系统观察程序发现的病毒时会打开一个表单,当我点击删除按钮时它打开对话框就会显示文件在这个程序中是打开的,例如在打开的文件对话框中,我该如何发布文件。
我尝试过:
OpenFileDialog3.Dispose()我试过并且没有工作仍然得到完全相同的错误。
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.
推荐答案
正在制作具有实时保护功能的反病毒
am making an anti virus with realtime protection
blockquote>
...然后发布文件resp。以正确的方式处理它应该是非常基本的东西。
... then releasing a file resp. handling it in the right way should be very Basic stuff for you.
这篇关于如何从打开文件对话框VB.NET中释放文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!