示例#1
0
        private void button11_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog dilog = new FolderBrowserDialog();

            dilog.Description = "请选择文件夹";
            if (dilog.ShowDialog() == DialogResult.OK || dilog.ShowDialog() == DialogResult.Yes)
            {
                TreeviewHelper class1 = new TreeviewHelper();
                class1.SetTreeNoByFilePath(treeView1, dilog.SelectedPath, imageList1);
            }
        }