如何从打开文件对话框VB.NET中释放文件 [英] How to release a file from open file dialog VB.NET

查看:126
本文介绍了如何从打开文件对话框VB.NET中释放文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个具有实时保护功能的防病毒软件,它有一个打开的文件对话框,当找到文件系统观察程序发现的病毒时会打开一个表单,当我点击删除按钮时它打开对话框就会显示文件在这个程序中是打开的,例如在打开的文件对话框中,我该如何发布文件。



我尝试过:



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.

推荐答案

我'非常抱歉,但....

I'm very sorry for this but....
引用:

正在制作具有实时保护功能的反病毒

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中释放文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆