如何删除文件名列表框 [英] How do I delete a filename listbox
本文介绍了如何删除文件名列表框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想删除一个只显示在列表框中的文件,如
sample.txt visualstudio
i use filefolderbrowser
并列出所有.txt文件并仅显示文件名..
问题是我想删除此文件不仅在列表框中,而且也在root
我尝试了什么:
visual studio visual基本的vbnet
i want to delete a file that only display in listbox like
sample.txt visualstudio
i use filefolderbrowser
andlisted all .txtfile and display only filename..
question is i want to delete this file not only in listbox but also in root
What I have tried:
visual studio visual basic vbnet
推荐答案
如果我理解你,你想从Visual Studio的Project Explorer中删除文件。如果是,请检查:如何:添加和删除解决方案项 [ ^ 一>]。页面底部有一个提示:要从存储中永久删除文件,请使用Windows资源管理器。
但是......如果你谈论通过代码从系统中删除文件,你可能会感兴趣:如何:复制,删除和移动文件和文件夹(C#编程指南) [ ^ ]
If i understand you well, you want to delete file(s) from under Project Explorer in Visual Studio. If yes, please check this: How to: Add and Remove Solution Items[^]. There's a tip at the bottom of page:To permanently delete a file from storage, use Windows Explorer.
But... If you talking about removing file(s) from system through the code, you may be interested in: How to: Copy, Delete, and Move Files and Folders (C# Programming Guide)[^]
这篇关于如何删除文件名列表框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文