111,129
社区成员
发帖
与我相关
我的任务
分享for(int i=0;i<10;i++)
{
Label label = new Label();
label.BackColor = Color.Yellow;
label.AutoSize = false;
label.Font = new Font("Arial", 16, FontStyle.Regular);
label.Size = new Size(60, 30);
label.Name = "dfd";
label.Text = "fds";
label.TextAlign = ContentAlignment.MiddleCenter;
label.Location = new Point(30, 40 + i*40);
this.panel1.Controls.Add(label);
this.toolTip1.SetToolTip(label, "fsdf");
}