private void button3_Click(object sender, EventArgs e) { if (searchForm == null || searchForm.closed == true) { searchForm = new SearchForm(); searchForm.MdiParent = this; searchForm.Show(); } else MessageBox.Show("You already opened one..."); }
private void button1_Click(object sender, EventArgs e) { if (childTab == null || childTab.closed == true) { childTab = new SearchForm(); childTab.MdiParent = this; childTab.Show(); } else MessageBox.Show("You already opened one..."); }