In Visual C# when I click a button, I want to load another form. But before that form loads, I want to fill the textboxes with some text. I tried to put some commands to d
private void button1_Click(object sender, EventArgs e) { Form2 frm = new Form2(); TextBox txt = (TextBox)frm.Controls.Find("p1c1val", true)[0]; txt.Text = "foo"; }