如何使用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[^]