private void agpic_Click(object sender, EventArgs e) { agents ag = new agents(); ag.TopLevel = false; cntpnl.Controls.Clear(); cntpnl.Controls.Add(ag); ag.Show(); }
private void agentbtn_Click(object sender, EventArgs e) { arrow1.Visible = false; arrow2.Visible = false; arrow3.Visible = false; arrow4.Visible = false; arrow5.Visible = true; arrow6.Visible = false; arrow7.Visible = false; arrow8.Visible = false; arrow9.Visible = false; agents ag = new agents(); ag.TopLevel = false; cntpnl.Controls.Clear(); cntpnl.Controls.Add(ag); ag.Show(); }