private void panel2_Click(object sender, EventArgs e) { profile pro = new profile(); pro.MdiParent = MdiParent; pro.Show(); }
private void profleToolStripMenuItem_Click(object sender, EventArgs e) { profile pro = new profile(); pro.MdiParent = this; pro.StartPosition = FormStartPosition.CenterScreen; pro.Show(); }