110,539
社区成员
发帖
与我相关
我的任务
分享
Label lbl = new Label();
lbl.Location = new System.Drawing.Point(e.X, e.Y);
//lbl.Left = 0;
//lbl.Name = "label1";
//lbl.Top = 0;
lbl.Text = "label1";
lbl.DoubleClick += new EventHandler(lbl_DoubleClick);
lbl.AutoSize = true;
lbl.Font = new System.Drawing.Font("宋体", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
lbl.Margin = new System.Windows.Forms.Padding(0);
lbl.FlatStyle = FlatStyle.Standard;
lbl.ForeColor = Color.Yellow;
lbl.BackColor = Color.Red;
pnlCMS.Controls.Add(lbl);