【问题标题】:Height and Width C# Panel高度和宽度 C# 面板
【发布时间】:2014-04-07 10:32:57
【问题描述】:

我有问题。 当我创建面板并询问尺寸 (150;150) 并执行程序时,我没有合适的尺寸。 所以如果问我得到的 witdh 和 heigth (112;122)..

你有什么想法吗?

谢谢

this.Zone_Impression.BackColor = System.Drawing.Color.White;
this.Zone_Impression.Location = new System.Drawing.Point(10, 10);
this.Zone_Impression.Margin = new System.Windows.Forms.Padding(0);
this.Zone_Impression.MinimumSize = new System.Drawing.Size(150, 150);
this.Zone_Impression.Name = "Zone_Impression";
this.Zone_Impression.Size = new System.Drawing.Size(150, 150);
this.Zone_Impression.TabIndex = 0;

【问题讨论】:

  • 给出你试过的代码..cs和aspx

标签: c# height width panel


【解决方案1】:

也许panel.AutoSize == true

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-11-27
    • 2019-07-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多