You're creating a whole new instance of Form1. Why would you ever expect this is going to contain data from a completely different instance of Form1? If you want to pass data from one form to another, just pass them. For example, as an argument to the constructor, or by making your own ShowDialog method.
private void button1_Click(object sender, EventArgs e)
var form = new Nawisko(textBox1.Text);
Asked in February 2016Viewed 2,198 timesVoted 14Answered 1 times