private void btnAvVillage_Click(object sender, EventArgs e) { this.splitContainer1.Panel2.Controls.Clear(); AvenueVillageFormServeur avrecens = new AvenueVillageFormServeur(); avrecens.Parent = this.splitContainer1.Panel2; this.splitContainer1.Panel2.Controls.Add(avrecens); }
private void lblRecensseurAvVillage_Click(object sender, EventArgs e) { this.splitContainer1.Panel2.Controls.Clear(); AvenueVillageFormServeur avrecens = new AvenueVillageFormServeur(); avrecens.Parent = this.splitContainer1.Panel2; this.splitContainer1.Panel2.Controls.Add(avrecens); unitialiseLabels(); ((Control)lblRecensseurAvVillage).BackColor = Color.White; ((Control)lblRecensseurAvVillage).ForeColor = Color.Brown; }