private void button7_Click_1(object sender, EventArgs e) // Get the value to do Breadth First Search in Graph 2 { Form2 form2 = new RotoniExer3.Form2(this); int number; if (int.TryParse(textBox2.Text, out number)) { form2.Graph2(); form2.g2.BFSearch(this, number); panel4.Visible = false; textBox2.Clear(); panel1.Enabled = true; } }