for (int i = 1; i <= 5; i++)
{
for (int j = 1; j <= 7; j++)
{
Label lble = new Label();
lble.Location = new Point(x + 10, y + 10);
lble.Text = i.ToString() + "-" + j.ToString();
// lbl.Add(lble);
tabControl2.TabPages[0].Controls.Add(lble);
lble.Show();
}
}
执行方法后为什么控件里不能显示label 用的是visualStudio2005