private void button1_Click(object sender, EventArgs e)
{
panel1.Controls.Clear();
UserControl1 uc1
= new UserControl1
(); uc1.Show();
panel1.Controls.Add(uc1);
}
private void button2_Click(object sender, EventArgs e)
{
panel1.Controls.Clear();
UserControl2 uc2
= new UserControl2
(); uc2.Show();
panel1.Controls.Add(uc2);
}