如何使用c#删除和打开文件浏览器中的文件 [英] how to delete and open files in file browser using c#

查看:84
本文介绍了如何使用c#删除和打开文件浏览器中的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好吧:



i在c#

中使用treeview制作文件浏览器代码它显示输入的文件和目录目录/文件



但我不知道删除并打开所选文件或目录?

请帮帮我... 。

Hi all :)

i make a code of file browser using treeview in c#
it displays the files and directories of the input dir/file

but i don't have an idea of deleting and opening the selected file or directory ?
help me please ...

推荐答案

您应该查看文件类 [ ^ ]。

你会在那里找到你需要的方法。



另请查看 TreeView .AfterSelect Event [ ^ ]
You should look into the File class[^].
You will find the methods you need there.

Also check out TreeView.AfterSelect Event[^]


这篇关于如何使用c#删除和打开文件浏览器中的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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