将已删除的文件发送到LISTBOX? [英] Send deleted files to the LISTBOX?

查看:48
本文介绍了将已删除的文件发送到LISTBOX?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

删除项目/文件或数据后,我希望它们在LISTBOX中。
我不确定LISTBOX是否是用于查看已删除文件的正确VB.NET工具。



如果删除的文件在列表框中,我想将所选文件恢复回原来的位置,但我不知道恢复的代码。 />


如果您不明白我会试着解释。



我有什么尝试过:



我发现了这个。

 My.Computer.FileSystem.DeleteFile(SelFileName, FileIO.UIOption.AllDialogs,FileIO.RecycleOption.SendToRecycleBin,FileIO.UICancelOption.DoNothing)



但这是将它们发送到回收站。

解决方案

回收站恢复C# - Google搜索 [ ^ ]

After i deleted the items/files or data, i want them to be in the LISTBOX
I'm not sure if the LISTBOX is the right VB.NET tools for viewing the deleted files.

If the deleted files are on the listbox i want to restore the selected file back to it's original location, but i don't know the codes for restore.

Just comment if you don't understand i will try to explain.

What I have tried:

I found this.

My.Computer.FileSystem.DeleteFile(SelFileName, FileIO.UIOption.AllDialogs, FileIO.RecycleOption.SendToRecycleBin, FileIO.UICancelOption.DoNothing)


But this is sending them to recycle bin.

解决方案

recycle bin restore C# - Google Search[^]


这篇关于将已删除的文件发送到LISTBOX?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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