I would like to know how to do the code for creating a new Folder that the user can rename it instantely after being created. Like in Windows Explorer: PICTURE!

When user clicks on "Make New Folder" it creates inside already selected folder and it colors blue (focus is on entering letters), so the user can now enter folder`s name.
I would like how to do?

This is how I can programaticlly do a directory:

string currentFolderPath = treeView1.SelectedNode.FullPath;
            string MynewFolder = System.IO.Path.Combine(currentFolderPath, "New Folder");
            System.IO.Directory.CreateDirectory(MynewFolder);

But I would like that a user can do its own folder with the folder`s name he wants.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.