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