- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
所有,我已经编写了大量的 WinForms,这个错误很奇怪,因为我以前没有遇到过它。此表单是该项目中 30 多个表单之一,并且是唯一一个在不同的屏幕分辨率和字体缩放下缩放表现异常的表单。
我知道 AutoScaleMode
属性,大多数时候我将它设置为 Font
以防止出现此处的错误。当我在我的 1920x1080 显示器上启动这个表单时它很好
但在 1920x1200 显示器上启动表单时,组框似乎会调整大小
这会迫使按钮离开屏幕并导致整体丑陋。如果我将默认操作系统字体从 125% 更改为 100%,我也可以在我的 1980x1080 显示器上出现这种情况。
顶部组框被锚定(左、右、上),底部组框被锚定(左、右、上、下)。表单设置为 Font
的 AutoScaleMode
。其他控件不是 AutoSized
。
问题是什么,我该如何解决?
感谢您的宝贵时间。
编辑:设计器文件如下。
namespace IPACost
{
partial class CreateNationalDbForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.customTreeViewSql = new IPACost.CustomTreeView();
this.panelBottom = new System.Windows.Forms.Panel();
this.buttonRefresh = new System.Windows.Forms.Button();
this.groupBoxBottom = new System.Windows.Forms.GroupBox();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.customRichTextBox1 = new IPACost.CustomRichTextBox();
this.labelInfo = new System.Windows.Forms.Label();
this.groupBoxTop = new System.Windows.Forms.GroupBox();
this.checkBoxInclSNAP = new System.Windows.Forms.CheckBox();
this.label2 = new System.Windows.Forms.Label();
this.comboBoxUnits = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.textBoxIniSize = new System.Windows.Forms.TextBox();
this.labelName = new System.Windows.Forms.Label();
this.textBoxDbName = new System.Windows.Forms.TextBox();
this.buttonNoFilter = new System.Windows.Forms.Button();
this.buttonCancel = new System.Windows.Forms.Button();
this.buttonAppend = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
this.panelBottom.SuspendLayout();
this.groupBoxBottom.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.groupBoxTop.SuspendLayout();
this.SuspendLayout();
//
// splitContainer1
//
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
this.splitContainer1.Margin = new System.Windows.Forms.Padding(2);
this.splitContainer1.Name = "splitContainer1";
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.customTreeViewSql);
this.splitContainer1.Panel1.Controls.Add(this.panelBottom);
//
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.groupBoxBottom);
this.splitContainer1.Panel2.Controls.Add(this.groupBoxTop);
this.splitContainer1.Panel2.Controls.Add(this.buttonNoFilter);
this.splitContainer1.Panel2.Controls.Add(this.buttonCancel);
this.splitContainer1.Panel2.Controls.Add(this.buttonAppend);
this.splitContainer1.Size = new System.Drawing.Size(705, 357);
this.splitContainer1.SplitterDistance = 199;
this.splitContainer1.SplitterWidth = 6;
this.splitContainer1.TabIndex = 0;
//
// customTreeViewSql
//
this.customTreeViewSql.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.customTreeViewSql.Dock = System.Windows.Forms.DockStyle.Fill;
this.customTreeViewSql.DrawMode = System.Windows.Forms.TreeViewDrawMode.OwnerDrawText;
this.customTreeViewSql.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.customTreeViewSql.HotTrackFont = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.customTreeViewSql.HotTracking = true;
this.customTreeViewSql.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.customTreeViewSql.Location = new System.Drawing.Point(0, 0);
this.customTreeViewSql.Margin = new System.Windows.Forms.Padding(2);
this.customTreeViewSql.Name = "customTreeViewSql";
this.customTreeViewSql.ShowNodeToolTips = true;
this.customTreeViewSql.Size = new System.Drawing.Size(199, 320);
this.customTreeViewSql.TabIndex = 7;
this.customTreeViewSql.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.customTreeViewSql_NodeMouseClick);
//
// panelBottom
//
this.panelBottom.Controls.Add(this.buttonRefresh);
this.panelBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panelBottom.Location = new System.Drawing.Point(0, 320);
this.panelBottom.Margin = new System.Windows.Forms.Padding(2);
this.panelBottom.Name = "panelBottom";
this.panelBottom.Size = new System.Drawing.Size(199, 37);
this.panelBottom.TabIndex = 7;
//
// buttonRefresh
//
this.buttonRefresh.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
this.buttonRefresh.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.buttonRefresh.Location = new System.Drawing.Point(2, 2);
this.buttonRefresh.Margin = new System.Windows.Forms.Padding(2);
this.buttonRefresh.Name = "buttonRefresh";
this.buttonRefresh.Size = new System.Drawing.Size(195, 33);
this.buttonRefresh.TabIndex = 8;
this.buttonRefresh.Text = "Show Database Structure";
this.buttonRefresh.UseVisualStyleBackColor = true;
this.buttonRefresh.Click += new System.EventHandler(this.buttonRefresh_Click);
//
// groupBoxBottom
//
this.groupBoxBottom.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBoxBottom.Controls.Add(this.pictureBox1);
this.groupBoxBottom.Controls.Add(this.customRichTextBox1);
this.groupBoxBottom.Controls.Add(this.labelInfo);
this.groupBoxBottom.Location = new System.Drawing.Point(4, 120);
this.groupBoxBottom.Name = "groupBoxBottom";
this.groupBoxBottom.Size = new System.Drawing.Size(480, 188);
this.groupBoxBottom.TabIndex = 12;
this.groupBoxBottom.TabStop = false;
this.groupBoxBottom.Text = "Additional SQL Filtering [WHERE:]";
//
// pictureBox1
//
this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.pictureBox1.Image = global::IPACost.Properties.Resources.Info;
this.pictureBox1.Location = new System.Drawing.Point(5, 122);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(2);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(38, 38);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 2;
this.pictureBox1.TabStop = false;
//
// customRichTextBox1
//
this.customRichTextBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.customRichTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.customRichTextBox1.Font = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.customRichTextBox1.Location = new System.Drawing.Point(5, 20);
this.customRichTextBox1.Margin = new System.Windows.Forms.Padding(2);
this.customRichTextBox1.Name = "customRichTextBox1";
this.customRichTextBox1.Size = new System.Drawing.Size(472, 86);
this.customRichTextBox1.TabIndex = 3;
this.customRichTextBox1.Text = "e.g. [B1A].[ProdType] IN (\'AC\', \'NB\', \'AE\')";
//
// labelInfo
//
this.labelInfo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labelInfo.Location = new System.Drawing.Point(47, 108);
this.labelInfo.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.labelInfo.Name = "labelInfo";
this.labelInfo.Size = new System.Drawing.Size(428, 77);
this.labelInfo.TabIndex = 1;
this.labelInfo.Text = "This filters the create database result sets for the National Databases. The filt" +
"ering SQL should only contain a valid WHERE clause on the core data table [B1A]." +
" The \'WHERE\' Keyword is not required.\r\n";
//
// groupBoxTop
//
this.groupBoxTop.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBoxTop.Controls.Add(this.checkBoxInclSNAP);
this.groupBoxTop.Controls.Add(this.label2);
this.groupBoxTop.Controls.Add(this.comboBoxUnits);
this.groupBoxTop.Controls.Add(this.label1);
this.groupBoxTop.Controls.Add(this.textBoxIniSize);
this.groupBoxTop.Controls.Add(this.labelName);
this.groupBoxTop.Controls.Add(this.textBoxDbName);
this.groupBoxTop.Location = new System.Drawing.Point(2, 10);
this.groupBoxTop.Margin = new System.Windows.Forms.Padding(2);
this.groupBoxTop.Name = "groupBoxTop";
this.groupBoxTop.Padding = new System.Windows.Forms.Padding(2);
this.groupBoxTop.Size = new System.Drawing.Size(479, 105);
this.groupBoxTop.TabIndex = 11;
this.groupBoxTop.TabStop = false;
this.groupBoxTop.Text = "National Database Details:";
//
// checkBoxInclSNAP
//
this.checkBoxInclSNAP.AutoSize = true;
this.checkBoxInclSNAP.Location = new System.Drawing.Point(155, 76);
this.checkBoxInclSNAP.Margin = new System.Windows.Forms.Padding(2);
this.checkBoxInclSNAP.Name = "checkBoxInclSNAP";
this.checkBoxInclSNAP.Size = new System.Drawing.Size(148, 21);
this.checkBoxInclSNAP.TabIndex = 14;
this.checkBoxInclSNAP.Text = "Include SNAP data";
this.checkBoxInclSNAP.UseVisualStyleBackColor = true;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(290, 51);
this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(160, 17);
this.label2.TabIndex = 13;
this.label2.Text = "Default growth rate 20%";
//
// comboBoxUnits
//
this.comboBoxUnits.FormattingEnabled = true;
this.comboBoxUnits.Items.AddRange(new object[] {
"B",
"KB",
"MB",
"GB",
"TB",
"PB"});
this.comboBoxUnits.Location = new System.Drawing.Point(232, 48);
this.comboBoxUnits.Margin = new System.Windows.Forms.Padding(2);
this.comboBoxUnits.Name = "comboBoxUnits";
this.comboBoxUnits.Size = new System.Drawing.Size(53, 24);
this.comboBoxUnits.TabIndex = 12;
this.comboBoxUnits.Text = "MB";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 51);
this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(139, 17);
this.label1.TabIndex = 11;
this.label1.Text = "Estimated initial size:";
//
// textBoxIniSize
//
this.textBoxIniSize.Location = new System.Drawing.Point(155, 48);
this.textBoxIniSize.Margin = new System.Windows.Forms.Padding(2);
this.textBoxIniSize.Name = "textBoxIniSize";
this.textBoxIniSize.Size = new System.Drawing.Size(74, 22);
this.textBoxIniSize.TabIndex = 10;
this.textBoxIniSize.Text = "100";
this.textBoxIniSize.Leave += new System.EventHandler(this.textBoxIniSize_Leave);
//
// labelName
//
this.labelName.AutoSize = true;
this.labelName.Location = new System.Drawing.Point(39, 24);
this.labelName.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.labelName.Name = "labelName";
this.labelName.Size = new System.Drawing.Size(112, 17);
this.labelName.TabIndex = 9;
this.labelName.Text = "Database name:";
//
// textBoxDbName
//
this.textBoxDbName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBoxDbName.Location = new System.Drawing.Point(155, 21);
this.textBoxDbName.Margin = new System.Windows.Forms.Padding(2);
this.textBoxDbName.Name = "textBoxDbName";
this.textBoxDbName.Size = new System.Drawing.Size(287, 22);
this.textBoxDbName.TabIndex = 1;
//
// buttonNoFilter
//
this.buttonNoFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonNoFilter.Location = new System.Drawing.Point(258, 313);
this.buttonNoFilter.Margin = new System.Windows.Forms.Padding(2);
this.buttonNoFilter.Name = "buttonNoFilter";
this.buttonNoFilter.Size = new System.Drawing.Size(104, 33);
this.buttonNoFilter.TabIndex = 5;
this.buttonNoFilter.Text = "Run No Filter";
this.buttonNoFilter.UseVisualStyleBackColor = true;
this.buttonNoFilter.Click += new System.EventHandler(this.buttonNoFilter_Click);
//
// buttonCancel
//
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.Location = new System.Drawing.Point(162, 313);
this.buttonCancel.Margin = new System.Windows.Forms.Padding(2);
this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.Size = new System.Drawing.Size(92, 33);
this.buttonCancel.TabIndex = 4;
this.buttonCancel.Text = "Cancel";
this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
//
// buttonAppend
//
this.buttonAppend.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonAppend.Location = new System.Drawing.Point(366, 313);
this.buttonAppend.Margin = new System.Windows.Forms.Padding(2);
this.buttonAppend.Name = "buttonAppend";
this.buttonAppend.Size = new System.Drawing.Size(117, 33);
this.buttonAppend.TabIndex = 6;
this.buttonAppend.Text = "Run Use Filter";
this.buttonAppend.UseVisualStyleBackColor = true;
this.buttonAppend.Click += new System.EventHandler(this.buttonAppend_Click);
//
// CreateNationalDbForm
//
this.AcceptButton = this.buttonNoFilter;
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(705, 357);
this.Controls.Add(this.splitContainer1);
this.Margin = new System.Windows.Forms.Padding(2);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(523, 303);
this.Name = "CreateNationalDbForm";
this.ShowIcon = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Special Processes Options";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.SpecialSqlForm_FormClosing);
this.Load += new System.EventHandler(this.SpecialSqlForm_Load);
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
this.panelBottom.ResumeLayout(false);
this.groupBoxBottom.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.groupBoxTop.ResumeLayout(false);
this.groupBoxTop.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.SplitContainer splitContainer1;
private CustomTreeView customTreeViewSql;
private System.Windows.Forms.Panel panelBottom;
private System.Windows.Forms.Button buttonRefresh;
private System.Windows.Forms.Label labelInfo;
private System.Windows.Forms.Button buttonCancel;
private System.Windows.Forms.Button buttonAppend;
private CustomRichTextBox customRichTextBox1;
private System.Windows.Forms.Button buttonNoFilter;
private System.Windows.Forms.Label labelName;
private System.Windows.Forms.TextBox textBoxDbName;
private System.Windows.Forms.GroupBox groupBoxTop;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox textBoxIniSize;
private System.Windows.Forms.ComboBox comboBoxUnits;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.CheckBox checkBoxInclSNAP;
private System.Windows.Forms.GroupBox groupBoxBottom;
}
}
最佳答案
我无法确定此问题的确切原因。但是,在对表单和控件设置进行了大约一百万次迭代之后,我确实想出了一个解决方案。它是在 SplitContainer
控件的 Panel2
中插入另一个 Panel
停靠为 Fill
。这似乎现在可以防止可能从底层 SplitContainer
继承的任何奇怪的缩放问题。
这不是对为什么会发生这种情况的答案,但它是一个解决方案,希望它能帮助其他人。
感谢您的宝贵时间。
关于c# - 特定 WInForm 的缩放错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12688752/
我有一个 winform 应用程序和一个可观察的设置,如下所示: Form form = new Form(); Label lb = new Label(); form.Controls.Add(l
在 Windows 窗体中实现多项选择选项的最佳方法是什么?我想从列表中强制执行单个选择,从默认值开始。 看起来 ComboBox 是一个不错的选择,但是有没有办法指定一个非空白的默认值? 我可以在代
如何在 WinForm 应用程序中保护我的 ConnectionString? 最佳答案 你不能。尽管您可以在 app.config 文件中加密连接字符串,但应用程序需要能够解密它,因此,始终可以检索
有谁知道像 DotNetBar 那样的 Winforms 面包屑样式导航。 http://www.devcomponents.com/dotnetbar/BreadCrumbHorizontalTre
我正在寻找在 Windows 窗体 C# 中实现多选启用列表框的方法。 有什么建议? 谢谢。 最佳答案 只需添加一个 ListBox控制和设置属性:SelectionMode = SelectionM
我有一个简单的 WinForms 应用程序,用于输入测试用例。自从我将此应用程序升级到 .NET 4.0 并将新的标签页添加到标签页控件以根据 XSD 架构验证 XML 以来,该应用程序一直随机崩溃。
在老式的 MFC 中,DDX 例程内置了表单条目的验证。例如,可以自动检查用户是否在用于数字输入的文本框中输入了字符串。 Winforms中有这样的机制吗?显然,可以为“onChange”等类型的事件
我主要具有 ASP.Net 背景,并具有一些 MVC 知识。我也做了一些 Silverlight 和 MVVM,但是我现在即将转向 Winforms,我对它的经验很少,所以我想知道如何处理 MVP。
简单的问题,虽然办公室里似乎没有人知道,而且我找不到一个好的方法来问谷歌这个问题。在 winforms 中,如果您有一个处理事件的函数(在本例中是在 focusLost 上),那么该函数是否与触发该事
在 Winform 中,我有一个组框,其中有几个文本框控件。如果我删除组框,文本框也会被删除。它们以某种方式与 Groupbox 联系在一起,尽管我没有故意做任何事情来实现这种情况。问题 - 如何删除
我可以在哈希表中设置表单元素: $Hash = @{} $Hash.Main = New-Object System.Windows.Forms.Form $Hash.Main.Left = 0 $H
我是 Windows 开发新手。我开发了一个 WinForm 应用程序,它与串行设备通信并在图表上绘制数据。该应用程序应每天 7/7 24 小时运行。代码执行正确,但执行几个小时后,UI 卡住,操作系
有没有办法记录 Win Forms 应用程序中的所有点击?我想拦截点击并记录该操作以及导致该操作的控件的名称。 这可能吗? 提前致谢。 更新:我正在寻找一个应用程序范围的解决方案,是否没有办法将监听器
我不知道这是否会影响其他控件,但对于列表框和选中列表框,列表框的底部仅以一定的间隔随表单调整大小。 假设我有一个表单和一个列表框,该列表框与表单边缘的所有边都有 2px 间隙,并锚定在所有四个边上。现
我在大多数 WinForms 控件的设计 View 中看到“Tag”属性。我从未使用过此标签,并且想知道为什么我要使用它。 最佳答案 它允许您使用控件存储一些自己的数据。它在树控件中最有用,您可能希望
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 7年前关闭。 Improve thi
如果有,有人吗?鱼眼 (菜单/ Pane )窗体在 Ajax 应用程序中常见的控件: 例如:http://interface.eyecon.ro/demos/fisheye.html 用 google
这是 Determine Label Size based upon amount of text and font size in Winforms/C# 的倒数. 给定一个高度固定但宽度可变的矩形
我们公司正在研究为我们的开发团队采购 22"显示器。当前唯一的问题是我们的用户将使用较小的屏幕。 我们尝试使用屏幕网格工具(gridmove 和 nvidia 的 utils),但它们并不完全现实。
我有一个 winforms 应用程序,它在网络服务请求期间被锁定 我已经尝试使用 doEvents 来保持应用程序解锁,但它仍然不够响应, 我怎样才能绕过这个锁定,让应用程序始终响应? 最佳答案 最好
我是一名优秀的程序员,十分优秀!