日期:2014-05-17  浏览次数:20966 次

winform 一层一层的打开文件夹怎么打开啊!打开文件
像打开我的电脑一样,一层一层打开文件夹,直到里面全是文件,还可以打开文件
winform 文件夹 打开文件

------解决方案--------------------
ListView
TreeView
两个控件

http://bbs.csdn.net/topics/380239317
------解决方案--------------------
引用:
        /// <summary>
        /// 数据加载
        /// </summary>
        private void LoadData()
        {
            try
            {
                treeList_File.Nodes.Clear();
                string indexpagevcode = System.Environment.CurrentDirectory + "\\公司库";
                TreeListNode parentNode = treeList_File.AppendNode(new string[] { "公司库", "", indexpagevcode }, 0);
                             GetAllDirList(indexpagevcode, parentNode);
                this.treeList_File.SelectImageList = this.imageList1;
            }
            catch (Exception e)
            {
                Program.MsgBoxError(e);
            }
        }
        /// <summary>
        /// 数据绑定
        /// </summary>
        /// <param name="strBaseDir">地址</param>
        /// <param name="parentNode">根节点</param>
        void GetAllDirList(string strBaseDir, TreeListNode parentNode)
        {
            
            //Process.Start("net.exe"," use  \\server\share password");
            //Process.StartInfo.CreateNoWindow = true;
            //Process.St