private void button2_Click(object sender, EventArgs e) { QuickSetup QS = new QuickSetup(); this.Parent.Controls.Add(QS); QS.Dock = DockStyle.Fill; QS.BringToFront(); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { DialogResult Dial = MessageBox.Show("Is the driver installed?", "Important!", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question); if (Dial == DialogResult.Yes) { Questions Q = new Questions(); this.Parent.Controls.Add(Q); Q.Dock = DockStyle.Fill; Q.BringToFront(); } else if (Dial == DialogResult.No) { DialogResult DD = MessageBox.Show("Please install the driver!", "Info", MessageBoxButtons.OKCancel, MessageBoxIcon.Information); if (DD == DialogResult.OK) { QuickSetup QQ = new QuickSetup(); this.Parent.Controls.Add(QQ); QQ.Dock = DockStyle.Fill; QQ.BringToFront(); this.Hide(); } } }