private void SubForm_Enter(object sender, EventArgs e) { Form1 f = new Form1(); f.SetCount(Convert.ToInt32(this.countLabel.Text)); }