コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            CarRegForm cr = new CarRegForm();

            cr.Show();
            this.Hide();
        }
コード例 #2
0
        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();
        }