我该如何通过点击边框来调整表单大小?我已将
以下是表单的属性: Designer.cs 中的表单部分:
FormBorderStyle
设置为sizable
,但是还需要做什么呢?以下是表单的属性: Designer.cs 中的表单部分:
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.ClientSize = new System.Drawing.Size(750, 378);
this.Controls.Add(this.rtxt_inactiveprograms);
this.Controls.Add(this.lbl_time);
this.Controls.Add(this.lsv_runningapps);
this.Controls.Add(this.btn_start);
this.Controls.Add(this.label3);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.lst_runningprocess);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.txt_pcname);
this.Controls.Add(this.btn_ping);
this.Name = "Form1";
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
this.PerformLayout();
0,0
表示假吗? - NatsuDragneelthis.Location = new Point(0, 0);
和this.Size = Screen.PrimaryScreen.WorkingArea.Size;
,我应该将它们删除吗? - NatsuDragneel