private void button2_Click(object sender, EventArgs e) { if (!Form1.Instance.PnlContainer.Controls.ContainsKey("UCQuest2")) { UCQuest2 quest2 = new UCQuest2(); quest2.Dock = DockStyle.Fill; Form1.Instance.PnlContainer.Controls.Add(quest2); Jawaban = trackBar10.Value; } Form1.Instance.PnlContainer.Controls["UCQuest2"].BringToFront(); }
public UCQuest9(UCQuest2 q2) { InitializeComponent(); this.q2 = q2; }