代码如下:` private void button1_Click(object sender, EventArgs e)
{
//using (Label lb = new Label())
//{
// lb.Location = new Point(20, 20);
// this.Controls.Add(lb);
Label lb2 = new Label();
Label lb1 = new Label();
count += 1;
int i = count % 2;
if (i == 0)
{
this.Controls.Remove(lb2);
this.Controls.Add(lb1);
lb1.Text = "jishu";
}
else
{
this.Controls.Remove(lb1);
this.Controls.Add(lb2);
lb2.Text = "oushu";
}
//}
}
- List item
`