this.label2 = new System.Windows.Forms.Label();
this.label2.Location = new System.Drawing.Point(220,100);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(120, 56);
this.label2.TabIndex = 1;
this.label2.Text = "ac,mfvnldjlgdlkfgjdlkjfgjkdnf";
this.label2.AllowDrop=true;
this.Controls.Add(this.label2);控件的定义如上,但生成的控件不能在 winform 上拖动。请问如何设定?(一定要由语句设定,因为程序要加入不定数量的控件)。
this.label2.Location = new System.Drawing.Point(220,100);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(120, 56);
this.label2.TabIndex = 1;
this.label2.Text = "ac,mfvnldjlgdlkfgjdlkjfgjkdnf";
this.label2.AllowDrop=true;
this.Controls.Add(this.label2);控件的定义如上,但生成的控件不能在 winform 上拖动。请问如何设定?(一定要由语句设定,因为程序要加入不定数量的控件)。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货