private void showConnectionToolStripMenuItem_Click(object sender, EventArgs e) { showallconnection newMDIChild = new showallconnection(); // Set the Parent Form of the Child window. if (!CheckForDuplicate(newMDIChild)) { newMDIChild.MdiParent = this; // Display the new form. newMDIChild.Dock = DockStyle.Fill; newMDIChild.Show(); } }
public home() { InitializeComponent(); showallconnection newMDIChild = new showallconnection(); // Set the Parent Form of the Child window. if (!CheckForDuplicate(newMDIChild)) { newMDIChild.MdiParent = this; // Display the new form. newMDIChild.Dock = DockStyle.Fill; newMDIChild.Show(); } }