I have a treeView1 and a contextMenuStrip1 attached to it.
I have made a few nodes in the nodes property of the treeview.
I want if the user selects a treeview node in the treeview
and selects the item "Edit Node" of the contextMenuStrip1
a inputbox appears where the user can enter a new name
for the node. My problem is how can i pass the string of the
inputbox to the label of the node that is selected.
private void editNodeToolStripMenuItem_Click(object sender, EventArgs e)
string NewText = "";
if (InputBox.Show("Enter new Folder", "Folder:", ref NewText, validation) == DialogResult.OK)
Who knows the answer and is willing to help me?