private void categoryToolStripMenuItem_Click(object sender, EventArgs e) { frm_Category _form = new frm_Category(); this.IsMdiContainer = true; _form.TopLevel = false; panel2.Controls.Add(_form); _form.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; panel2.Height = _form.Height; panel2.Width = _form.Width; _form.Dock = DockStyle.Fill; _form.Show(); }
private void categoryToolStripMenuItem_Click(object sender, EventArgs e) { frm_Category _form = new frm_Category(); _form.ShowDialog(); }