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