更改控件的AutoScaleMode为None

This commit is contained in:
Sunny 2022-01-29 16:50:02 +08:00
parent 95574c3f00
commit b87205d795
6 changed files with 5 additions and 5 deletions

Binary file not shown.

Binary file not shown.

View File

@ -177,7 +177,7 @@ namespace Sunny.UI.Demo
//
this.AllowShowTitle = true;
this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.uiSplitContainer1);
this.Name = "FSplitContainer";

View File

@ -48,7 +48,7 @@ namespace Sunny.UI.Demo
//
this.AllowShowTitle = true;
this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.uiButton1);
this.Name = "FCommon";

View File

@ -370,8 +370,7 @@ namespace Sunny.UI
//
// UIIPTextBox
//
this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.Controls.Add(this.txt4);
this.Controls.Add(this.txt3);
this.Controls.Add(this.txt2);
@ -380,6 +379,7 @@ namespace Sunny.UI
this.Name = "UIIPTextBox";
this.Padding = new System.Windows.Forms.Padding(1);
this.Size = new System.Drawing.Size(150, 29);
this.Style = Sunny.UI.UIStyle.Custom;
this.SizeChanged += new System.EventHandler(this.UIIPTextBox_SizeChanged);
this.ResumeLayout(false);
this.PerformLayout();

View File

@ -575,7 +575,7 @@ namespace Sunny.UI
{
this.SuspendLayout();
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = Color.Black;
this.ClientSize = new System.Drawing.Size(800, 450);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;