Set the property TextBox1.Modifiers=Public on Form2.
Form1
...
private void button1_Click(object sender, EventArgs e)
{
Form2 f = new Form2();
f.ShowDialog();
treeView1.Nodes.Add(f.textBox1.Text);
}
...
Form2
...
private void button1_Click(object sender, EventArgs e)
{
Close();
}
...
__avd
Posting Genius (adatapost)
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
Thanks! Please mark this thread as solved if you have found an answer to your question and good luck!
__avd
Posting Genius (adatapost)
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241