资源简介

ListView显示磁盘目录文件及图标,右键能打开文件、删除文件

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Diagnostics;
using System.Runtime.InteropServices; 
namespace SecureTree
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender EventArgs e)
        {

            //调用SetListView()函数初始化设置ListView  
            SetListView();
            
            
            
            
            //实例化TreeNode类 TreeNode(string textint imageIndexint selectImageIndex)              
            TreeNode rootNode = new TreeNode(“我的电脑“
        

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      22528  2017-05-20 15:57  SecureTree\SecureTree\bin\Debug\SecureTree.exe

     文件      36352  2017-05-20 15:57  SecureTree\SecureTree\bin\Debug\SecureTree.pdb

     文件      11592  2017-05-21 14:41  SecureTree\SecureTree\bin\Debug\SecureTree.vshost.exe

     文件        490  2009-06-11 05:14  SecureTree\SecureTree\bin\Debug\SecureTree.vshost.exe.manifest

     文件      17567  2017-05-20 15:57  SecureTree\SecureTree\Form1.cs

     文件       6715  2017-05-06 17:08  SecureTree\SecureTree\Form1.Designer.cs

     文件      15425  2017-05-06 17:08  SecureTree\SecureTree\Form1.resx

     文件       1834  2017-05-21 14:41  SecureTree\SecureTree\obj\Debug\SecureTree.csproj.FileListAbsolute.txt

     文件        847  2017-05-06 17:08  SecureTree\SecureTree\obj\Debug\SecureTree.csproj.GenerateResource.Cache

     文件      22528  2017-05-20 15:57  SecureTree\SecureTree\obj\Debug\SecureTree.exe

     文件       6244  2017-05-06 17:08  SecureTree\SecureTree\obj\Debug\SecureTree.Form1.resources

     文件      36352  2017-05-20 15:57  SecureTree\SecureTree\obj\Debug\SecureTree.pdb

     文件        180  2017-05-06 15:53  SecureTree\SecureTree\obj\Debug\SecureTree.Properties.Resources.resources

     文件        491  2017-05-06 15:00  SecureTree\SecureTree\Program.cs

     文件       1370  2017-05-06 14:40  SecureTree\SecureTree\Properties\AssemblyInfo.cs

     文件       2870  2017-05-06 14:40  SecureTree\SecureTree\Properties\Resources.Designer.cs

     文件       5612  2017-05-06 14:40  SecureTree\SecureTree\Properties\Resources.resx

     文件       1095  2017-05-06 14:40  SecureTree\SecureTree\Properties\Settings.Designer.cs

     文件        249  2017-05-06 14:40  SecureTree\SecureTree\Properties\Settings.settings

     文件       2462  2017-05-06 15:53  SecureTree\SecureTree\Resource\ClosedFolder.ico

     文件      25214  2017-05-06 15:53  SecureTree\SecureTree\Resource\FixedDrive.ico

     文件       1176  2017-05-06 15:53  SecureTree\SecureTree\Resource\MyComputer.gif

     文件       5434  2017-05-06 15:53  SecureTree\SecureTree\Resource\MyDocuments.png

     文件       1078  2017-05-06 15:53  SecureTree\SecureTree\Resource\OpenFolder.ICO

     文件       4020  2017-05-06 15:53  SecureTree\SecureTree\SecureTree.csproj

     文件        920  2017-05-06 14:41  SecureTree\SecureTree.sln

    ..A..H.     18432  2017-05-21 14:41  SecureTree\SecureTree.suo

     目录          0  2017-05-06 14:42  SecureTree\SecureTree\obj\Debug\Refactor

     目录          0  2017-05-06 14:40  SecureTree\SecureTree\obj\Debug\TempPE

     目录          0  2017-05-06 14:43  SecureTree\SecureTree\bin\Debug

............此处省略11个文件信息

评论

共有 条评论