Ok so basically, when executing addTerminalsToolStripMenuItem_Click, i want the groupbox to replace the one in scheduleTerminalsToolStripMenuItem_Click and vice versa. If i dispose of these controls, then i cannot call the controls during run time again.
private void addTerminalsToolStripMenuItem_Click(object sender, EventArgs e)
{
AddTerminals AddTerm = new AddTerminals();
this.Controls.Add(AddTerm);
}
private void scheduleTerminalsToolStripMenuItem_Click(object sender, EventArgs e)
{
SchedTerminals SchedTerm = new SchedTerminals();
this.Controls.Add(SchedTerm);
}
Thanks