I saw really many examples displaying exisiting folder structure with TreeView, but what I am trying to do is following ->
I have a standard folder structure in my C# WinForms with several folders and subfolders and a comboBox which display exisiting folders in my path.
The user should be able to choose a exisiting folder from my comboBox and just press a button to create every checked Item in my TreeView.
This is my existing Code:
public Form1()
{
InitializeComponent();
this.FormBorderStyle = FormBorderStyle.None;
Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 20, 20));
foreach (TreeNode tn in pathLorem.Nodes)
{
tn.Expand();
}
DirectoryInfo obj = new DirectoryInfo("F:\\");
DirectoryInfo[] folders = obj.GetDirectories();
loremDropDown.DataSource = folders;
}
I don't beg for a finished code, I just need a tutorial or a exisiting StackOverflow post. I'm searching for 1 hour now.