private void button1_Click(object sender, EventArgs e) { CarRegForm cr = new CarRegForm(); cr.Show(); this.Hide(); }
private void carRegistrationToolStripMenuItem_Click(object sender, EventArgs e) { CarRegForm cr = new CarRegForm(); cr.Dock = DockStyle.Fill; this.panel1.Controls.Clear(); this.panel1.Controls.Add(cr); cr.Show(); }