private void subCategoryToolStripMenuItem_Click(object sender, EventArgs e) { frm_SubCategory _form = new frm_SubCategory(); 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 subCategoryToolStripMenuItem_Click(object sender, EventArgs e) { frm_SubCategory _form = new frm_SubCategory(); _form.ShowDialog(); }