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