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